-
Notifications
You must be signed in to change notification settings - Fork 5
Using with Apache Superset
-
Clone the Superset repository:
$ git clone https://github.com/apache/superset.git
-
Within the Superset repository create the following file:
# docker/requirements-local.txt flightsql-dbapi
This file instructs Superset to download and install our Python package in all running containers.
-
Start Superset:
$ docker-compose -f docker-compose-non-dev.yml up
-
(flightsql-dbapi) Run make to build
flightsql-dbapi
to yielddist/flightsql_dbapi-<VERSION>.tar.gz
. -
(flightsql-dbapi) Start an HTTP server in your
flightsql-dbapi
repository so Superset can download it:$ python3 -m http.server 8000
-
(superset) Clone the Superset repository:
$ git clone https://github.com/apache/superset.git
-
(superset) Within the Superset repository create the following file:
# docker/requirements-local.txt http://docker.for.mac.host.internal:8000/dist/flightsql_dbapi-<VERSION>.tar.gz#egg=flightsql-dbapi
Replace with the version built by make in step 1 (e.g. 0.0.1).
This file instructs Superset to download and install our Python package in all running containers.
-
(superset) Start Superset:
$ docker-compose -f docker-compose-non-dev.yml up
Any changes to flightsql-dbapi will need a rebuild (make) and Superset will need to be stopped and restarted.
-
Log into the server at
http://localhost:8088
with the credentialsadmin
/admin
. -
Add a Database Connection of type "Other" with the following DSN:
datafusion+flightsql://user:pass@host:port[?token=<token>]
-
InfluxDB IOx:
datafusion+flightsql://host:443?token=<influxdb-token>&bucket-name=<bucket-name>