Superset安装
Superset安装
(1)Docker本地安装
1.克隆Superset Github代码并解压
git clone https://github.com/apache/superset.git
#使用xftp上传zip文件
yum install zip unzip
cd /opt/module
unzip superset-master.zip -d superset
2.通过 Docker Compose 启动 Superset
#创建虚拟环境
conda create -n superset python=3.6
conda activate superset
pip install docker-compose -i https://pypi.douban.com/simple/
cd /opt/module/superset/superset-master
docker-compose -f docker-compose-non-dev.yml up
(2)系统安装
1.安装依赖
sudo yum install gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel cyrus-sasl-devel openldap-devel
2.conda virtual environment
conda create -n superset python=3.7
conda activate superset
pip install --upgrade pip -i https://pypi.douban.com/simple/
3.insatl apache-superset
pip install apache-superset -i https://pypi.douban.com/simple/
4.initializing
superset db upgrade
# Create an admin user (you will be prompted to set a username, first and last name before setting a password)
export FLASK_APP=superset
superset fab create-admin
# Create default roles and permissions
superset init
5.启动
superset run -h 0.0.0.0 -p 8088 --with-threads --reload --debugger
(3)Connet MySQL
conda activate superset
conda install mysqlclient

参考文档
[1]CentOS[EB/OL]. [2021-10-31]. https://yeasy.gitbook.io/docker_practice/install/centos.
[2]Apache Superset项目部署介绍 - 墨天轮[EB/OL]. [2021-10-31]. https://www.modb.pro/db/131770.
[3]Documentation[EB/OL]. [2021-10-31]. https://superset.apache.org/docs/installation/installing-superset-using-docker-compose.

浙公网安备 33010602011771号