How to get Apache SuperSet connected to StarRocks #23210
Closed
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Prerequisites
For this tutorial you need to:
Have Docker Desktop or podman container runtime installed
This is out of scope for the tutorial.
A StarRocks or CelerData database cluster
This is out of scope for the tutorial.
Configure Apache SuperSet
Use https://superset.apache.org/docs/installation/installing-superset-using-docker-compose to provision your Apache SuperSet environment.
Tip
If you're using Mac ARM, you have to use
docker compose -f docker-compose-non-dev.yml up
. The other docker compose (dev) will not work.Add the database
Before running
docker compose -f docker-compose-non-dev.yml up
, you need to run the following commands to inject the StarRocks driver into superset.Run Superset
Run
docker compose -f docker-compose-non-dev.yml up
. It will take a while for all the assets to load up. Once up, you can login to http://localhost:8088/ with admin:adminAdded database connection info and query the data
Add a new database. StarRocks should be listed as an option.
The connection string for StarRocks should have the following format:
starrocks://admin:[email protected]:9030/default_catalog.some_database?charset=utf8
wherestarrocks://<user>:<password>@ip:port/<catalog>.<db>
or orstarrocks://<user>:<password>@ip:port/<db>
for tables in default_catalog. Make sure you test your connection!From there you can now use SQL Lab to query data.
Or you can load a data set like NYC Taxi (see tutorial at #24504) and then create a charts with them.
Beta Was this translation helpful? Give feedback.
All reactions