Superset's data sources,
registered by the chart.
Five scenarios: how the chart registers the sources, the connection to ClickHouse and Trino, the metadata in a shared PostgreSQL, and the cataloging of dashboards by OpenMetadata. Each one covers: what the source requires, the values file block commented line by line, and the verification.
The tdp-superset chart registers ClickHouse and Trino as Superset data sources from the values file, under tdp-superset.datasources, and reimports the connections on every install and upgrade. For installation, the metadata database, and exposure, see Superset Configuration.
Your environment
If you fill in your environment details here, the examples and commands on the page use what you provided. The namespace, the release name and the values file are your choices, not the chart's.
Scenarios
- 1 · How it connects
- 2 · ClickHouse
- 3 · Trino
- 4 · PostgreSQL
- 5 · OpenMetadata
The generated ConfigMap, the init Job that imports, and each connection's uuid.
Superset connects to data sources through preconfigured connections: with auto-import enabled, the chart generates a ConfigMap with the connections described in the values file and mounts it in every Superset pod. By default, auto-import is disabled, as are the two sources the chart can register. The following tabs enable ClickHouse and Trino, store the metadata in a shared PostgreSQL and let OpenMetadata catalog the dashboards.
You want Superset to start with the TDP data sources already registered, without going through the interface. The init Job, which runs on every install and upgrade, imports the connections from the ConfigMap. Each connection has a uuid: the import updates the connection with the same uuid instead of creating another one.
Auto-import off (datasources.autoImport.enabled) and both sources off. The ConfigMap is not created and the mount in the pods is ignored.
The <RELEASE_NAME>-datasources-config ConfigMap carries the sources with enabled: true, and the init Job imports them on every install and upgrade.
They are registered through the Superset interface. The image already ships the drivers for PostgreSQL, MySQL, Hive, Impala, Druid, Doris, Pinot, Dremio, Drill, Solr, Snowflake, Teradata, and Vertica, among others.
The data sources registered from the values file
- Values file. The datasources.clickhouse and datasources.trino blocks describe each connection: name, address, port, credentials, and uuid. Chart default:
autoImport off. (tdp-superset.datasources) - Sources ConfigMap. With autoImport.enabled, the chart generates this ConfigMap from the datasources.* blocks and mounts it in every Superset pod. When off, the ConfigMap is not created and the mount is ignored. Chart default:
not created. (tdp-superset.datasources.autoImport.enabled) - Init Job. Runs on every install and upgrade and imports the connections from the ConfigMap: those that already exist with the same uuid are updated, not duplicated.
- Superset. The imported connections appear as data sources, ready for datasets, charts, and dashboards. Other sources are registered through the interface, using the drivers the image already ships.
- ClickHouse. Reached through the Service's HTTP port, with a user that accepts connections from other pods. It must be deployed and reachable. (
tdp-superset.datasources.clickhouse) - Trino. Reached through the Trino Service. Without LDAP on Trino, the password stays empty. It must be deployed and reachable. (
tdp-superset.datasources.trino)
The values file
1tdp-superset:2datasources:3 autoImport:4 enabled: true
Generates the sources ConfigMap. Each source enters it only with its own enabled: true, in the ClickHouse and Trino scenarios.
- Auto-import (linha 4). Generates the sources ConfigMap. Each source enters it only with its own enabled: true, in the ClickHouse and Trino scenarios.
Enable auto-import and the sources
The block above, plus the ClickHouse and Trino scenario blocks you use.
Put everything in a single values file. The sources must be deployed and reachable when the init Job runs.
Apply to the release
The init Job imports the connections.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-superset \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace --timeout 10m \
-f <VALUES_FILE>
Without --version, Helm installs the latest published version.
kubectl -n <NAMESPACE> get configmap <RELEASE_NAME>-datasources-config -o yaml
It worked when
If a source does not appear
Check the init Job log: it shows the import of each connection. The Job is removed when it finishes successfully. The log exists when it fails. The Job name is <RELEASE_NAME>-tdp-superset-init-db, or <RELEASE_NAME>-init-db when the release name already contains tdp-superset. The import runs again on every helm upgrade.
kubectl -n <NAMESPACE> logs job/<RELEASE_NAME>-tdp-superset-init-db
The Service's HTTP port and a user that accepts connections from other pods.
You want to analyze the tables of a TDP ClickHouse in Superset. Superset connects through the ClickHouse Service's HTTP port, and it needs a user that accepts connections from other pods: ClickHouse's default user accepts only local connections.
With the tdp-clickhouse chart, the Service is clickhouse-<release>, in the ClickHouse namespace.
tdpuser, created by the ClickHouse chart with tdp-clickhouse.clickhouse.tdpUser.enabled, or a user of your own, created for Superset.
ClickHouse as a Superset source
- Values file. The datasources.clickhouse and datasources.trino blocks describe each connection: name, address, port, credentials, and uuid. Chart default:
autoImport off. (tdp-superset.datasources) - Sources ConfigMap. With autoImport.enabled, the chart generates this ConfigMap from the datasources.* blocks and mounts it in every Superset pod. When off, the ConfigMap is not created and the mount is ignored. Chart default:
not created. (tdp-superset.datasources.autoImport.enabled) - Init Job. Runs on every install and upgrade and imports the connections from the ConfigMap: those that already exist with the same uuid are updated, not duplicated.
- Superset. The imported connections appear as data sources, ready for datasets, charts, and dashboards. Other sources are registered through the interface, using the drivers the image already ships.
- ClickHouse. Reached through the Service's HTTP port, with a user that accepts connections from other pods. It must be deployed and reachable. (
tdp-superset.datasources.clickhouse)
The values file
1tdp-superset:2datasources:3 autoImport:4 enabled: true5 clickhouse:6 enabled: true7 name: "ClickHouse TDP"8 host: "<CLICKHOUSE_SERVICE>.<SHARED_NAMESPACE>.svc.cluster.local"9 port: "8123"10 database: "default"11 username: "<USERNAME>"12 password: "<PASSWORD>"13 uuid: "92122244-b262-44a6-a2ed-e49a05860dda"
The source enters the ConfigMap and is imported by the init Job.
- Enables the source (linha 6). The source enters the ConfigMap and is imported by the init Job.
- Name (linha 7). The source name in the Superset interface.
- Address (linha 8). The ClickHouse Service, with the namespace where it runs.
- HTTP port (linha 9). ClickHouse's HTTP port.
- Database (linha 10). The database opened by default in the connection.
- User (linha 11). tdpuser or a user of your own. The default user accepts only local connections.
- uuid (linha 13). Identifies the connection across imports. Keep it fixed after the first one: with a different uuid, the source appears duplicated.
Add the block to the values file
With your ClickHouse's address and credentials.
Keep the file out of version control: it holds the user's password.
Apply to the release
The init Job imports the source.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-superset \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace --timeout 10m \
-f <VALUES_FILE>
Without --version, Helm installs the latest published version.
It worked when
The Trino Service and, without LDAP, an empty password.
You want to query the catalogs of a TDP Trino through Superset. Superset connects through the Trino Service. Without LDAP on Trino, the user identifies who is querying and the password stays empty.
With the tdp-trino chart, the Service is <release>-tdp-trino, or just <release> when the release name already contains tdp-trino.
Without LDAP on Trino, the user identifies who is querying and the password stays empty.
Trino as a Superset source
- Values file. The datasources.clickhouse and datasources.trino blocks describe each connection: name, address, port, credentials, and uuid. Chart default:
autoImport off. (tdp-superset.datasources) - Sources ConfigMap. With autoImport.enabled, the chart generates this ConfigMap from the datasources.* blocks and mounts it in every Superset pod. When off, the ConfigMap is not created and the mount is ignored. Chart default:
not created. (tdp-superset.datasources.autoImport.enabled) - Init Job. Runs on every install and upgrade and imports the connections from the ConfigMap: those that already exist with the same uuid are updated, not duplicated.
- Superset. The imported connections appear as data sources, ready for datasets, charts, and dashboards. Other sources are registered through the interface, using the drivers the image already ships.
- Trino. Reached through the Trino Service. Without LDAP on Trino, the password stays empty. It must be deployed and reachable. (
tdp-superset.datasources.trino)
The values file
1tdp-superset:2datasources:3 autoImport:4 enabled: true5 trino:6 enabled: true7 name: "Trino TDP"8 host: "<TRINO_SERVICE>.<SHARED_NAMESPACE>.svc.cluster.local"9 port: "8080"10 catalog: ""11 username: "<USERNAME>"12 password: ""13 uuid: "8a92c01b-2d6e-4fc1-a302-b6a5f0e56789"
The source enters the ConfigMap and is imported by the init Job.
- Enables the source (linha 6). The source enters the ConfigMap and is imported by the init Job.
- Address (linha 8). The Trino Service, with the namespace where it runs.
- Port (linha 9). The Trino Service's port.
- Catalog (linha 10). The Trino catalog that goes at the end of the connection address (trino://…/<catalog>).
- Password (linha 12). Empty without LDAP on Trino.
- uuid (linha 13). Identifies the connection across imports. Keep it fixed after the first one.
Add the block to the values file
With your Trino's address.
With ClickHouse and Trino, both blocks go under the same datasources, with a single autoImport.
Apply to the release
The init Job imports the source.
helm upgrade --install <RELEASE_NAME> oci://registry.tecnisys.com.br/tdp/charts/tdp-superset \
--version 3.0.3 \
-n <NAMESPACE> --create-namespace --timeout 10m \
-f <VALUES_FILE>
Without --version, Helm installs the latest published version.
It worked when
The metadata database in a shared PostgreSQL.
You want Superset's metadata (users, dashboards, connections) to live in a shared TDP PostgreSQL, instead of the PostgreSQL embedded in the chart. It is not a data source: it is Superset's own database. The chart creates the database and the user in the shared PostgreSQL at install time.
The Superset metadata in PostgreSQL
- Values file. The datasources.clickhouse and datasources.trino blocks describe each connection: name, address, port, credentials, and uuid. Chart default:
autoImport off. (tdp-superset.datasources) - Sources ConfigMap. With autoImport.enabled, the chart generates this ConfigMap from the datasources.* blocks and mounts it in every Superset pod. When off, the ConfigMap is not created and the mount is ignored. Chart default:
not created. (tdp-superset.datasources.autoImport.enabled) - Init Job. Runs on every install and upgrade and imports the connections from the ConfigMap: those that already exist with the same uuid are updated, not duplicated.
- Superset. The imported connections appear as data sources, ready for datasets, charts, and dashboards. Other sources are registered through the interface, using the drivers the image already ships.
- Metadata PostgreSQL. It is not a data source: it stores Superset's users, dashboards, and connections. It can be the embedded one or a shared PostgreSQL. (
TDP-Settings.externalDatabase)
The values block, the administrator Secret, and the verification are in the Metadata database scenario of the Superset configuration.
Superset dashboards and charts in the OpenMetadata catalog.
You want Superset's dashboards and charts to appear in the OpenMetadata catalog. The integration starts from OpenMetadata, which reads Superset. Nothing changes in the tdp-superset chart.
OpenMetadata reading Superset
- Values file. The datasources.clickhouse and datasources.trino blocks describe each connection: name, address, port, credentials, and uuid. Chart default:
autoImport off. (tdp-superset.datasources) - Sources ConfigMap. With autoImport.enabled, the chart generates this ConfigMap from the datasources.* blocks and mounts it in every Superset pod. When off, the ConfigMap is not created and the mount is ignored. Chart default:
not created. (tdp-superset.datasources.autoImport.enabled) - Init Job. Runs on every install and upgrade and imports the connections from the ConfigMap: those that already exist with the same uuid are updated, not duplicated.
- Superset. The imported connections appear as data sources, ready for datasets, charts, and dashboards. Other sources are registered through the interface, using the drivers the image already ships.
- OpenMetadata. The integration starts from OpenMetadata: it reads Superset's dashboards and charts. The configuration lives on the OpenMetadata integrations page.
The configuration is in the Superset scenario of the OpenMetadata integrations.
When something goes wrong
Troubleshooting
Pick the symptom or describe what appears. The answer comes with the cause, what to do, and the command.
- The same source appears twice. Cause: The connection's uuid changed after the first import. The import updates only the connection with the same uuid. With a different one, it creates a new connection. What to do: Go back to the uuid from the first import and keep it fixed in the values file.
- The sources do not appear in Superset. Cause: Auto-import is off, the source has enabled false, or the source was not reachable when the init Job ran. What to do: Check the sources ConfigMap and the init Job log. The Job is removed when it finishes successfully. The log exists when it fails. The Job is named <RELEASE_NAME>-tdp-superset-init-db, or <RELEASE_NAME>-init-db when the release name already contains tdp-superset. The import runs again on every release upgrade.
- ClickHouse rejects the default user. Cause: ClickHouse's default user accepts only local connections, from inside its own pod. What to do: Use tdpuser, enabled in the ClickHouse chart, or a user created for Superset (ClickHouse scenario).
- Another problem. Cause: Start with the state of the pods and the namespace events. What to do: The events in time order show what keeps the pod from starting.