Superset
Integrate with Superset

Start Superset with Docker Image

Start running Superset Image with pre-built Superset Pinot connector.
Docker
1. Run below command to start a standalone Superset deployment
1
docker run \
2
--network pinot-demo \
3
--name=superset \
4
-p 8088:8088 \
5
-d apachepinot/pinot-superset:latest
Copied!
2.1. (First time) Setup Admin account by running below command and follow instructions to set password.
1
docker exec -it superset superset fab create-admin \
2
--username admin \
3
--firstname Superset \
4
--lastname Admin \
5
6
--password admin
Copied!
2.2. (First time) DB upgrade and Initialize Superset
1
docker exec -it superset superset db upgrade
2
docker exec -it superset superset init
Copied!
3. Import Pre-defined Pinot Datasources and Dashboard
1
docker exec \
2
-t superset \
3
bash -c 'superset import_datasources -p /etc/examples/pinot/pinot_example_datasource_quickstart.yaml && \
4
superset import_dashboards -p /etc/examples/pinot/pinot_example_dashboard.json'
Copied!
4. Go to SuperSet UI: http://localhost:8088/ to play around with dashboard.

Advanced Setup

Adding Pinot Database

In order to add Pinot cluster as a database, a SQLAlchemy URI is required.
The format of URI is:
pinot://<pinot-broker-host>:<pinot-broker-port><pinot-broker-path>?controller=<pinot-controller-host>:<pinot-controller-port>
E.g.
pinot://pinot-broker:8099/query/sql?controller=http://pinot-controller:9000/
Below is an example for the QuickStart cluster, you can click TEST CONNECTION button to check if Pinot cluster is successfully connected.
Add Pinot cluster as a new Database

Adding Pinot Table

User can add an existing table into Superset:
Add Table Definition
Table Definition
User can edit table/column definition by clicking the edit button left to the table name.

Configuring time column

User can configure an existing column mergedTimeMillis as temporal and set Datetime Format accordingly.
Configure time column

Adding a derived column

User can also add a new column by setting the expression.
Add a simple derived column
Another example:
Add a derived column with Pinot UDFs
Last modified 5mo ago