OpenMetadata
Search…
Run Tableau Connector with the CLI
Use the 'metadata' CLI to run a one-time ingestion
Configure and schedule Tableau metadata workflows using CLI.

Requirements

Follow this guide to learn how to set up Airflow to run the metadata ingestions.

Python requirements

To run the Tableau ingestion, you will need to install:
1
pip3 install 'openmetadata-ingestion[tableau]'
Copied!

Metadata Ingestion

All connectors are now defined as JSON Schemas. Here you can find the structure to create a connection to Tableau.
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 Tableau:
1
source:
2
type: redash
3
serviceName: local_redash
4
serviceConnection:
5
config:
6
type: Redash
7
hostPort: http://localhost:5000
8
apiKey: api_key
9
username: random
10
sourceConfig:
11
config:
12
dashboardFilterPattern: {}
13
chartFilterPattern: {}
14
sink:
15
type: metadata-rest
16
config: {}
17
workflowConfig:
18
openMetadataServerConfig:
19
hostPort: http://localhost:8585/api
20
authProvider: no-auth
Copied!

Source Configuration - Service Connection

You can find all the definitions and types for the serviceConnection here.
  • username: Enter the username of your Redash user in the Username field. The specified user should be authorized to read all databases you want to include in the metadata ingestion workflow.
  • password: Enter the password for your Redash user in the Password field.
  • hostPort: Enter the fully qualified hostname and port number for your Redash deployment in the Host and Port field.
  • dbServiceName: If you want create Lineage enter the database Service name.

Source Configuration - Source Config

The sourceConfig is defined here.
  • dashboardFilterPattern and chartFilterPattern: Note that the dashboardFilterPattern and chartFilterPattern both support regex as include or exclude. E.g.,
1
dashboardFilterPattern:
2
includes:
3
- users
4
- type_test
Copied!

Sink Configuration

To send the metadata to OpenMetadata, it needs to be specified as "type": "metadata-rest".

Workflow Configuration

The main property here is the openMetadataServerConfig, where you can define the host and security provider of your OpenMetadata installation.
For a simple, local installation using our docker containers, this looks like:
1
workflowConfig:
2
openMetadataServerConfig:
3
hostPort: http://localhost:8585/api
4
authProvider: no-auth
Copied!

OpenMetadata Security Providers

We support different security providers. You can find their definitions here. An example of an Auth0 configuration would be the following:
1
workflowConfig:
2
openMetadataServerConfig:
3
hostPort: http://localhost:8585/api
4
authProvider: auth0
5
securityConfig:
6
clientId: <client ID>
7
secretKey: <secret key>
8
domain: <domain>
Copied!

2. Run with the CLI

First, we will need to save the YAML file. Afterward, and with all requirements installed, we can run:
1
metadata ingest -c <path-to-yaml>
Copied!
Note that from connector to connector, this recipe will always be the same. By updating the JSON configuration, you will be able to extract metadata from different sources.