This documentation is for an older version (1.4.7) of Dagster. You can view the version of this page from our latest release below.
This library provides an integration with Datahub, to support pushing metadata to Datahub from within Dagster ops.
We use the Datahub Python Library. To use it, you’ll first need to start up a Datahub Instance. Datahub Quickstart Guide.
Datahub GMS Server
Personal Access Token
Default Value: False
Base class for Dagster resources that utilize structured config.
This class is a subclass of both ResourceDefinition
and Config
.
Example definition:
class WriterResource(ConfigurableResource):
prefix: str
def output(self, text: str) -> None:
print(f"{self.prefix}{text}")
Example usage:
@asset
def asset_that_uses_writer(writer: WriterResource):
writer.output("text")
defs = Definitions(
assets=[asset_that_uses_writer],
resources={"writer": WriterResource(prefix="a_prefix")},
)
Kafka Boostrap Servers. Comma delimited
Schema Registry Location.
Extra Schema Registry Config.
{}
{
"MetadataChangeEvent": "MetadataChangeEvent_v4",
"MetadataChangeProposal": "MetadataChangeProposal_v1"
}
Base class for Dagster resources that utilize structured config.
This class is a subclass of both ResourceDefinition
and Config
.
Example definition:
class WriterResource(ConfigurableResource):
prefix: str
def output(self, text: str) -> None:
print(f"{self.prefix}{text}")
Example usage:
@asset
def asset_that_uses_writer(writer: WriterResource):
writer.output("text")
defs = Definitions(
assets=[asset_that_uses_writer],
resources={"writer": WriterResource(prefix="a_prefix")},
)
Datahub GMS Server
Personal Access Token
Default Value: False
Kafka Boostrap Servers. Comma delimited
Schema Registry Location.
Extra Schema Registry Config.
{}
{
"MetadataChangeEvent": "MetadataChangeEvent_v4",
"MetadataChangeProposal": "MetadataChangeProposal_v1"
}