rock64搭建superset(适用于其他linux服务器)

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/u011870280/article/details/88049685

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

猜你喜欢

转载自blog.csdn.net/u011870280/article/details/88049685