Pinku
March 27, 2024, 9:30am
1
I have setup Dremio and Superset in Docker Desktop.
Dremio: http://locahost:9047
Superset: http://localhost:8088
I have also installed database driver for Dremio in Superset.
While connecting Superset to Dremio, I am getting below error-
I am using below SQLALCHEMY URI for Dremio-
dremio+flight://pinku:password@localhost:32010/Pinku
On the above URL, Pinku in the last is dataset from next to the home icon from Dremio UI. I have also tried port 31010 but getting same error.
Can someone please help me on this as I am struggling on this issue since one week.
@Pinku Welcome to Dremio Community. Could you try again but with SQLAlchemy from this fork instead? GitHub - lenoyjacob/sqlalchemy_dremio: SQLAlchemy for Dremio via Flight interface
You can add it in the bootstrapScript
in values.yaml for Superset like so:
pip install git+https://github.com/lenoyjacob/sqlalchemy_dremio.git
Pinku
March 28, 2024, 5:42am
3
Hi Jacob,
I am getting below error while running the pip install command from github for dremio-
@Pinku You need to install the SQLAlchemy Dremio dialect within the Superset pods (not on your local machine). If you’re using k8s and using helm to deploy Superset, add the above command to bootstrapScript in values.yaml for Superset (here )
Pinku
March 28, 2024, 6:40am
5
@lenoyjacob The image that I sent in previous reply was from Docker Desktop terminal for Superset app-
Superset and Dremio both are in docker desktop. I am not using Helm.
Thank you for clarifying. The error seems to indicate that git
is missing?
Pinku
March 28, 2024, 10:11am
7
@lenoyjacob I have installed git but getting below error after running the command-
Can you please confirm if the below connection string is correct?
dremio+flight://pinku:password@localhost:32010/pinku
Pinku
March 28, 2024, 10:24am
8
@lenoyjacob Dremio scrrenshot-
Great that you progressed from your previous error. If you look at your new error from pip, it says server certificate verification failed
. If this is a test environment, see if this answer helps: git - github: server certificate verification failed - Stack Overflow
The ideal way is to refer to superset documentation on how to get packages set up correctly on a docker install. Particularly this one: superset/docker at master · apache/superset · GitHub which says to add it to the ./docker/requirements-local.txt
file (along with the dependencies - git, certs etc.)
I recently created this superset image that has the Dremio library preinstalled
alexmerced/dremio-superset
Here is Dockerfile to customize to your needs
Pinku
April 2, 2024, 9:14am
11
Thankyou Lenoy, It worked!!
Pinku
April 2, 2024, 9:15am
12
Thankyou for the reply Alex, I have followed the approach explained by LenoyJacob and It worked.