Get Started Today: StarTree Free Tier
Connect Superset to StarTree Cloud

Connect Superset to StarTree Cloud

To connect Superset to StarTree Cloud, do the following:

  1. Install prerequisites
  2. Obtain your Pinot API token, username, and password
  3. Obtain your Pinot broker and controller URL
  4. Format your SQLAlchemy URI
  5. Add the SQLAlchemy URI in Superset

Prerequisites

Obtain your API token, username, and password

To obtain your API token, see Generate an API token, and then to convert your API token to a username and password, see the Superset and Trino users section on the same page.

Obtain your Pinot broker and controller URL

  1. In StarTree Cloud, go to Data Manager
  2. Click on any of the datasets
  3. Copy the "Broker URL". For example your broker URL may look like https://broker.pinot.[Your_URL].startree.cloud:443/query/sql (opens in a new tab)
  4. Controller URL can be obtained by removing the "broker." from the Broker URL. For the Broker URL above, the Controller URL will look like https://pinot.[Your_URL].startree.cloud:443/ (opens in a new tab)

Format your SQLAlchemy URI

  1. Encode the Pinot controller URL in UTF-8 format using urlencoder.org (opens in a new tab) or similar site.
  2. Use the encoded UTF-8 format in the SQLAlchemy URI. See the following example for the correct SQLAlchemy URL format:

Example

  • username is user
  • password is pass
  • broker url is https://broker.pinot.example:443
  • controller url is https://controller.pinot.example:443

StarTree Serverless Trial Users Copy the name of the workspace from top-left corner of the screen The url is pinot+https://user:pass@broker.pinot.example:443/query/sql?controller=https%3A%2F%2Fcontroller.pinot.example%3A443%2F&database=<Your Workspace>&verify_ssl=true

StarTree Customers

The url is pinot+https://user:pass@broker.pinot.example:443/query/sql?controller=https%3A%2F%2Fcontroller.pinot.example%3A443%2Fverify_ssl=true

Add the SQLAlchemy URI in Superset

  1. In Superset, click + in the top right, and then select the Connect a database option.
  2. Select Apache Pinot (if not in the list, see instructions in Prerequisites to download the Pinot database driver).
  3. Paste the SQLAlchemy URI.