# Superset

Start running [Superset Image](https://hub.docker.com/repository/docker/apachepinot/pinot-superset) with pre-built Superset Pinot connector.

{% tabs %}
{% tab title="Docker" %}

1. Run below command to start a standalone Superset deployment

```
docker run \
  --network pinot-demo \
  --name=superset \
  -p 8088:8088 \
  -d apachepinot/pinot-superset:latest
```

2.1. (First time) Setup Admin account by running below command and follow instructions to set password.

```
docker exec \
    -it superset \
    bash -c 'export FLASK_APP=superset && flask fab create-admin'
```

Output:

![Superset Admin Command line Output](https://2688850955-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-LtH6nl58DdnZnelPdTc%2F-M0VAmcW2XSq7uIM4s8p%2F-M0VAvHujvdZnLhL6_Rc%2Fimage.png?alt=media\&token=116be707-f36c-4d5c-a115-1169883af431)

2.2. (First time) DB upgrade and Initialize Superset

```
docker exec \
    -t superset \
    bash -c 'superset db upgrade && superset init'
```

1. Import Pre-defined Pinot Datasources and Dashboard

```
docker exec \
    -t superset \
    bash -c 'superset import_datasources -p /etc/examples/pinot/pinot_example_datasource_quickstart.yaml && \
             superset import_dashboards -p /etc/examples/pinot/pinot_example_dashboard.json'
```

1. Go to SuperSet UI: <http://localhost:8088/> to play around with dashboard.
   {% endtab %}
   {% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.pinot.apache.org/release-0.4.0/integrations/superset.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
