Superset 安装
作者:互联网
基础环境
# cat /etc/redhat-release CentOS Linux release 7.2.1511 (Core) # free -m total used free shared buff/cache available Mem: 7566 493 1663 8 5409 6781 Swap: 1535 0 1535 # df -h 文件系统 容量 已用 可用 已用% 挂载点 /dev/mapper/centos-root 98G 6.5G 92G 7% / devtmpfs 3.9G 0 3.9G 0% /dev tmpfs 3.7G 12K 3.7G 1% /dev/shm tmpfs 3.7G 8.4M 3.7G 1% /run tmpfs 3.7G 0 3.7G 0% /sys/fs/cgroup /dev/xvda1 497M 205M 293M 42% /boot tmpfs 757M 0 757M 0% /run/user/0基础环境
安装依赖
sudo yum install gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel cyrus-sasl-devel openldap-devel yum install mysql-devel gcc gcc-devel yum install python3-devel依赖环境安装
虚拟环境配置
pip3 install virtualenv python3 -m venv venv . venv/bin/activate pip install apache-superset 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 # Load some data to play with 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 run -p 8088 --with-threads --reload --debugger虚拟环境配置
nginx 代理配置
location / { proxy_pass http://127.0.0.1:8088; proxy_redirect off; proxy_set_header Host $host; proxy_set_header X-Real-IP $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; }nginx 代理配置
参考
详细信息参考官网:https://superset.apache.org/docs/installation/installing-superset-from-scratch
备注
安装过程中,所需要的依赖比较多。区分python、python3,尽量安装devel依赖环境,链接mysql的同学可以先将mysql-devel安装上,然后再pip安装Database Drivers
标签:Superset,python,devel,3.7,proxy,install,superset,安装 来源: https://www.cnblogs.com/Star-Haitian/p/15118479.html