1,確保有python3和pip
2,安裝依賴
apt update
apt install -y build-essential libssl-dev libffi-dev libsasl2-dev libldap2-dev
#這塊會比較耗時
pip install numpy
pip install sasl
3,安裝superset,執行完後就會默認8088端口啓動
# Install superset
pip install superset
#如果遇到Was unable to import superset Error: cannot import name '_maybe_box_datetimelike'錯誤則需要
pip uninstall pandas
pip install pandas==0.23.4
# Create an admin user (you will be prompted to set a username, first and last name before setting a password)
fabmanager create-admin --app superset
# Initialize the database
superset db upgrade
# 加載superset例子,可要可不要
superset load_examples
# Create default roles and permissions
superset init
# To start a development web server on port 8088, use -p to bind to another port
superset runserver -d
3,安裝常用數據源
# MySQL 數據庫
pip install mysqlclient
# Postgres 數據庫
pip install psycopg2
# Presto 數據庫
pip install pyhive
# Oracle 數據庫
pip install cx_Oracle
# Redshift 數據庫
pip install sqlalchemy-redshift
# MSSQL 數據庫
pip install pymssql
# Impala 數據庫
pip install impyla
# SparkSQL 數據庫
pip install pyhive
# Greenplum 數據庫
pip install psycopg2
# Athena 數據庫
pip install "PyAthenaJDBC>1.0.9"
# Vertica 數據庫
pip install sqlalchemy-vertica-python
# ClickHouse 數據庫
pip install sqlalchemy-clickhouse