superset安装配置

一、安装操做系统依赖 python

yum -y install vim net-tools
yum upgrade python-setuptools
yum -y install gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel bzip2 sqlite-develc++


二、安装python3 web

tar -zxvf Python-3.7.0.tgz
cd Python-3.7.0
./configure --prefix=/usr/lcoal/python3
make && make install sql

三、安装Python virtualenvvim

/usr/local/python3/bin/pip install virtualenv浏览器

# virtualenv is shipped in Python 3 as pyvenv
/usr/local/python3/bin/virtualenv venv
. ./venv/bin/activateapp

#exit
deactivate操作系统

四、更新pip server

/usr/local/python3/bin/pip install --upgrade setuptools pipsqlite

五、安装superset

# Install superset
/usr/local/python3/bin/pip install superset

# Create an admin user (you will be prompted to set a username, first and last name before setting a password)
/usr/local/python3/bin/fabmanager create-admin --app superset

# Initialize the database
/usr/local/python3/bin/superset db upgrade

# Load some data to play with
/usr/local/python3/bin/superset load_examples

# Create default roles and permissions
/usr/local/python3/bin/superset init

# To start a development web server on port 8088, use -p to bind to another port
/usr/local/python3/bin/superset runserver -d

浏览器 http://localhost:8088 访问。