Skip to main content
Version 3.0

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.

ChartVersion3.0.3TypeapplicationAppVersion5.0.0
CompatibilityKubernetes1.32+OpenShift4.19+Rancher2.10.x+

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​

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.

Chart default

Auto-import off (datasources.autoImport.enabled) and both sources off. The ConfigMap is not created and the mount in the pods is ignored.

With auto-import

The <RELEASE_NAME>-datasources-config ConfigMap carries the sources with enabled: true, and the init Job imports them on every install and upgrade.

Other sources

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

namespace <NAMESPACE>clickhousedbtrinoValues filedatasources.*ConfigMap<RELEASE_NAME>-datasources-configInit Jobupsert by uuidSupersetregistered data sourcesClickHouseHTTP · <CLICKHOUSE_SERVICE>TrinoHTTP · <TRINO_SERVICE>
  1. 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)
  2. 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)
  3. 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.
  4. 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.
  5. 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)
  6. Trino. Reached through the Trino Service. Without LDAP on Trino, the password stays empty. It must be deployed and reachable. (tdp-superset.datasources.trino)
From the values file to the registered sources. Click an element to see what it does.

The values file

Click the markers to understand each line.

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.

  1. 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

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.

Terminal input
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.

Terminal input
kubectl -n <NAMESPACE> get configmap <RELEASE_NAME>-datasources-config -o yaml

It worked when

The ConfigMap carries the enabled sources, and they appear as data sources in the Superset interface.
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.

Terminal input
kubectl -n <NAMESPACE> logs job/<RELEASE_NAME>-tdp-superset-init-db

When something goes wrong​

Troubleshooting

Pick the symptom or describe what appears. The answer comes with the cause, what to do, and the command.

  1. 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.
  2. 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.
  3. 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).
  4. 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.

Next steps​