centos7 build installation superset


superset official website: https://superset.incubator.apache.org/

System Environment:
System: centos7

First, installation tool and dependencies
mounting kit:
yum the install Vim wget -Y-NET Tools

Installation dependencies:
yum the install -Y-C GCC GCC ++ libffi devel-devel-Python Python Python-PIP-Wheel-OpenSSL OpenLDAP devel-devel

Upgrade Tool Version:
PIP PIP setuptools install --upgrade

安装virtualenv
pip install virtualenv
virtualenv -v ./venv

安装mysql
yum install -y https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-server-5.6.44-1.el7.x86_64.rpm
yum install -y https://dev.mysql.com/get/Downloads/MySQL-5.6/MySQL-client-5.6.44-1.el7.x86_64.rpm

5.6 version of mysql default password file is stored: /root/.mysql_secret
mysql_install_db // initialize the database
chown -R mysql: mysql / var / lib / mysql
systemctl Start mysql
systemctl enable mysql

Set Password:
MySQL -uroot--p`cat / the root / .mysql_secret`
MySQL> SET @ localhost = password for the root password ( 'the root'); // reset the password
mysql> flush privileges;

Local unauthorized access:
MySQL> Grant All privileges ON * * to root @ localhost IDENTIFIED by 'root';.
MySQL> flush privileges;

Installation superset
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple superset == 999999 // see which version
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple superset == 0.23.2 // version 0.23.2 is installed superset of
unloading: pip uninstall superset

Druid set time zone:
VI /usr/lib/python2.7/site-packages/superset/config.py
the DRUID_TZ = tz.tzutc () into: DRUID_TZ = tz.gettz ( 'Asia / Shanghai')

Update the database
superset db upgrade // must update the database, or at the start when there will be a lot of mistakes, a lot of front-end interface will be 500 errors

Initialization data, create an administrative user
fabmanager create-admin --app superset
then need to enter:
the Username [ADMIN]: ADMIN
the User First name [ADMIN]: ADMIN
the User Last name [the User]: ADMIN
Email [[email protected]]: ADMIN qq.com @
Password: ADMIN
the Repeat for Confirmation: ADMIN

A good idea to update the database and then create an administrative user, or it may occur web terminal landing error "Invalid user name or password, please try again!"

Start
# uperset runserver & // default port 8088
or the port: superset runserver -p 8388 &

Test checks:
HTTP: // host ip address: 8088
to enter the login screen, enter the user name and password set to enter service

Guess you like

Origin www.cnblogs.com/carriezhangyan/p/11078757.html