superset安装配置
1、安裝操作系統(tǒng)依賴
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-devel
2、安裝python3
tar -zxvf Python-3.7.0.tgz
cd Python-3.7.0
./configure --prefix=/usr/lcoal/python3
make && make install
3、安裝Python virtualenv
/usr/local/python3/bin/pip install virtualenv
# virtualenv is shipped in Python 3 as pyvenv
/usr/local/python3/bin/virtualenv venv
. ./venv/bin/activate
#exit
deactivate
4、更新pip
/usr/local/python3/bin/pip install --upgrade setuptools pip
5、安裝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 訪問。
轉(zhuǎn)載于:https://www.cnblogs.com/wcwen1990/p/10206452.html
總結(jié)
以上是生活随笔為你收集整理的superset安装配置的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 栈的实现
- 下一篇: CF1096E The Top Scor