Airflow Summit 2025 is coming October 07-09. Register now for early bird ticket!

Gremlin Connection

The Gremlin connection type enables integrations with Gremlin Server.

Authenticating to Gremlin

Authenticate to Gremlin using the Germlin python client default authentication.

Default Connection IDs

Hooks and operators related to Gremlin use gremlin_default by default.

Configuring the Connection

Use the gremlin_conn_id argument to connect to your Gremlin instance where the connection metadata is structured as follows:

Gremlin Airflow Connection Metadata

Parameter

Input

Host: string

Gremlin hostname

Port: int

Gremlin port

Username: string

Gremlin user

Password: string

Gremlin user password

Scheme: string

Gremlin Scheme

Schema: string

Gremlin Schema

URI format example

If serializing with Airflow URI:

export AIRFLOW_CONN_GREMLIN_DEFAULT='gremlin://username:password@host:port/schema'

Note that all components of the URI should be URL-encoded.

JSON format example

If serializing with JSON:

export AIRFLOW_CONN_GREMLIN_DEFAULT='{
    "conn_type": "gremlin",
    "login": "username",
    "host": "host",
    "password": "password",
    "schema": "schema",
    "port": 433
}'

Was this entry helpful?