2024-08-27 14:41:12 +05:30

2.9 KiB

title slug
Run the Dagster Connector Externally /connectors/pipeline/dagster/yaml

{% connectorDetailsHeader name="Dagster" stage="PROD" platform="OpenMetadata" availableFeatures=["Pipelines", "Pipeline Status", "Tags"] unavailableFeatures=["Owners", "Lineage"] / %}

In this section, we provide guides and references to use the Dagster connector.

Configure and schedule Dagster metadata and profiler workflows from the OpenMetadata UI:

{% partial file="/v1.5/connectors/external-ingestion-deployment.md" /%}

Requirements

Python Requirements

{% partial file="/v1.5/connectors/python-requirements.md" /%}

To run the Dagster ingestion, you will need to install:

pip3 install "openmetadata-ingestion[dagster]"

Metadata Ingestion

All connectors are defined as JSON Schemas. Here you can find the structure to create a connection to Dagster.

In order to create and run a Metadata Ingestion workflow, we will follow the steps to create a YAML configuration able to connect to the source, process the Entities if needed, and reach the OpenMetadata server.

The workflow is modeled around the following JSON Schema

1. Define the YAML Config

This is a sample config for Dagster:

{% codePreview %}

{% codeInfoContainer %}

Source Configuration - Service Connection

{% codeInfo srNumber=1 %}

  • host: host and port for dagster pipeline

Note: If dagster is deployed on localhost and entering https://localhost:3000 into hostPort gives a connection refused error, please enter https://127.0.0.1:3000 into the hostPort and try again.

{% /codeInfo %}

{% codeInfo srNumber=2 %}

Token : Need pass token if connecting to dagster cloud instance

{% /codeInfo %}

{% partial file="/v1.5/connectors/yaml/pipeline/source-config-def.md" /%}

{% partial file="/v1.5/connectors/yaml/ingestion-sink-def.md" /%}

{% partial file="/v1.5/connectors/yaml/workflow-config-def.md" /%}

{% /codeInfoContainer %}

{% codeBlock fileName="filename.yaml" %}

source:
  type: dagster
  serviceName: dagster_source
  serviceConnection:
    config:
      type: Dagster
        host: "https://<yourorghere>.dagster.cloud/prod" # or http://127.0.0.1:3000
        token: token

{% partial file="/v1.5/connectors/yaml/pipeline/source-config.md" /%}

{% partial file="/v1.5/connectors/yaml/ingestion-sink.md" /%}

{% partial file="/v1.5/connectors/yaml/workflow-config.md" /%}

{% /codeBlock %}

{% /codePreview %}

{% partial file="/v1.5/connectors/yaml/ingestion-cli.md" /%}