Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
05-25-2018
01:54 PM
- last edited on
09-19-2022
11:33 AM
by
cjervis
I am trying to add a postgres database to superset. This is my connection URI: postgresql://username:password@localhost/mydatabase.
I keep getting the following error while trying to test connection: No module named psycopg2 !
I made sure I installed this module using pip install psycopg2 in shell but it's still not working!
Created 05-25-2018 03:18 PM
@Khouloud LandariIn HDP superset is installed inside a python virtual environment.
In order to install psycopg2, you will need to run following command -
/usr/hdp/current/superset/bin/pip install psycopg2
Alternatively, We package superset with pygresql and you can change the connection URI to use that -
postgresql+pygresql://user:password@host:port/dbname
Created 05-25-2018 03:18 PM
@Khouloud LandariIn HDP superset is installed inside a python virtual environment.
In order to install psycopg2, you will need to run following command -
/usr/hdp/current/superset/bin/pip install psycopg2
Alternatively, We package superset with pygresql and you can change the connection URI to use that -
postgresql+pygresql://user:password@host:port/dbname
Created 05-28-2018 12:23 PM
Thank you @Nishant Bangarwa! "No module psycopg2" solved!
Though I am getting another error now:
Error: Fatal: no pg_hba.conf entry for host "x.x.x.x", user "x", database "x", SSL off.
Plus, I am not sure about the user & password for my Postgres database