superset 官网部署

superset 官方部署文档地址:http://superset.apache.org/installation.html

Docker

git clone https://github.com/apache/incubator-superset/
cd incubator-superset/contrib/docker
# prefix with SUPERSET_LOAD_EXAMPLES=yes to load examples:
docker-compose run --rm superset ./docker-init.sh
# you can run this command everytime you need to start superset now:
docker-compose up

Ubuntu

--Ubuntu 16 
注:需要升级到python3.6
注:需要升级到python3.6
注:需要升级到python3.6
注:需要升级到python3.6
sudo apt-get install build-essential libssl-dev libffi-dev python-dev python-pip libsasl2-dev libldap2-dev

--Ubuntu 18
sudo apt-get install build-essential libssl-dev libffi-dev python3.6-dev python-pip libsasl2-dev libldap2-dev

pip install virtualenv
# virtualenv is shipped in Python 3.6+ as venv instead of pyvenv.
# See https://docs.python.org/3.6/library/venv.html
python3 -m venv venv
# 如果要是ubuntu16,需要进行一步安装 apt-get install python3.6-venv
. venv/bin/activate
pip install --upgrade setuptools pip
# Install superset
pip install superset

# Initialize the database
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
flask 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 8080 --with-threads --reload --debugger

– 仅仅是记录一下,方便查找

– 其余省略0–

你可能感兴趣的:(superset,hadoop,superset)