fix db installaion (#10425)

This commit is contained in:
Hossein Torabi
2020-08-05 09:21:32 +04:30
committed by GitHub
parent cda764fd4b
commit 514b29f6df
2 changed files with 81 additions and 75 deletions

View File

@@ -482,73 +482,67 @@ connect to the databases you want to access through Superset.
Here's a list of some of the recommended packages.
+------------------+---------------------------------------+-------------------------------------------------+
| database | pypi package | SQLAlchemy URI prefix |
+==================+=======================================+=================================================+
| Amazon Athena | ``pip install "PyAthenaJDBC>1.0.9"`` | ``awsathena+jdbc://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Amazon Athena | ``pip install "PyAthena>1.2.0"`` | ``awsathena+rest://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Amazon Redshift | ``pip install sqlalchemy-redshift`` | ``redshift+psycopg2://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Apache Drill | ``pip install sqlalchemy-drill`` | For the REST API:`` |
| | | ``drill+sadrill://`` |
| | | For JDBC |
| | | ``drill+jdbc://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Apache Druid | ``pip install pydruid`` | ``druid://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Apache Hive | ``pip install pyhive`` | ``hive://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Apache Impala | ``pip install impyla`` | ``impala://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Apache Kylin | ``pip install kylinpy`` | ``kylin://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Apache Pinot | ``pip install pinotdb`` | ``pinot+http://CONTROLLER:5436/`` |
| | | ``query?server=http://CONTROLLER:5983/`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Apache Spark SQL | ``pip install pyhive`` | ``jdbc+hive://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| BigQuery | ``pip install pybigquery`` | ``bigquery://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| ClickHouse | ``pip install sqlalchemy-clickhouse`` | |
+------------------+---------------------------------------+-------------------------------------------------+
| CockroachDB | ``pip install cockroachdb`` | ``cockroachdb://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Dremio | ``pip install sqlalchemy_dremio`` | ``dremio://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Elasticsearch | ``pip install elasticsearch-dbapi`` | ``elasticsearch+http://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Exasol | ``pip install sqlalchemy-exasol`` | ``exa+pyodbc://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Google Sheets | ``pip install gsheetsdb`` | ``gsheets://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| IBM Db2 | ``pip install ibm_db_sa`` | ``db2+ibm_db://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| MySQL | ``pip install mysqlclient`` | ``mysql://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Oracle | ``pip install cx_Oracle`` | ``oracle://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| PostgreSQL | ``pip install psycopg2`` | ``postgresql+psycopg2://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Presto | ``pip install pyhive`` | ``presto://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Snowflake | ``pip install snowflake-sqlalchemy`` | ``snowflake://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| SQLite | | ``sqlite://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| SQL Server | ``pip install pymssql`` | ``mssql://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Teradata | ``pip install sqlalchemy-teradata`` | ``teradata://`` |
+------------------+---------------------------------------+-------------------------------------------------+
| Vertica | ``pip install | ``vertica+vertica_python://`` |
| | sqlalchemy-vertica-python`` | |
+------------------+---------------------------------------+-------------------------------------------------+
| Hana | ``pip install hdbcli sqlalchemy-hana``| ``hana://`` |
| | or | |
| | ``pip install apache-superset[hana]`` | |
+------------------+---------------------------------------+-------------------------------------------------+
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Database | PyPI package | SQLAlchemy URI prefix |
+==================+===================================================================+=================================================+
| Amazon Athena | ``"apache-superset[athena]"`` | ``awsathena+jdbc://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Amazon Redshift | ``"apache-superset[redshift]"`` | ``redshift+psycopg2://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Apache Drill | ``"apache-superset[drill]"`` | For the REST API:`` |
| | | ``drill+sadrill://`` |
| | | For JDBC |
| | | ``drill+jdbc://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Apache Druid | ``"git+https://github.com/JohnOmernik/sqlalchemy-drill"`` | ``druid://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Apache Hive | ``"apache-superset[hive]"`` | ``hive://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Apache Impala | ``"apache-superset[impala]"`` | ``impala://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Apache Kylin | ``"apache-superset[kylin]"`` | ``kylin://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Apache Pinot | ``"apache-superset[pinot]"`` | ``pinot+http://CONTROLLER:5436/`` |
| | | ``query?server=http://CONTROLLER:5983/`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Apache Spark SQL | ``"apache-superset[hive]"`` | ``jdbc+hive://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| BigQuery | ``"apache-superset[bigquery]"`` | ``bigquery://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| ClickHouse | ``"apache-superset[clickhouse]"`` | |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| CockroachDB | ``"apache-superset[cockroachdb]"`` | ``cockroachdb://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Dremio | ``"apache-superset[dremio]"`` | ``dremio://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Elasticsearch | ``"apache-superset[elasticsearch]"`` | ``elasticsearch+http://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Exasol | ``"apache-superset[exasol]"`` | ``exa+pyodbc://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Google Sheets | ``"apache-superset[gsheets]"`` | ``gsheets://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Hana | ``"apache-superset[hana]"`` | ``hana://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| IBM Db2 | ``"apache-superset[db2]"`` | ``db2+ibm_db://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| MySQL | ``"apache-superset[mysql]"`` | ``mysql://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Oracle | ``"apache-superset[oracle]"`` | ``oracle://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| PostgreSQL | ``"apache-superset[postgres]"`` | ``postgresql+psycopg2://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Presto | ``"apache-superset[presto]"`` | ``presto://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Snowflake | ``"apache-superset[snowflake]"`` | ``snowflake://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| SQLite | | ``sqlite://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| SQL Server | ``"apache-superset[mssql]"`` | ``mssql://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Teradata | ``"apache-superset[teradata]"`` | ``teradata://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
| Vertica | ``"apache-superset[vertical]"`` | ``vertica+vertica_python://`` |
+------------------+-------------------------------------------------------------------+-------------------------------------------------+
Note that many other databases are supported, the main criteria being the
existence of a functional SqlAlchemy dialect and Python driver. Googling