https://superset.incubator.apache.org/installation.html
sudo yum upgrade python-setuptools -y
sudo yum install gcc gcc-c++ libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap- devel -y
curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" If this curl: (35) SSL connect error error is reported during execution, execute as follows Action
Solution network security service.
yum update nss -y
execute curl again "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python get-pip.py If python 2.6 version is used, an error will be reported, it is recommended Upgrade to python 2.7 version
wget https://www.python.org/ftp/python/2.7.12/Python-2.7.12.tgz
tar zxvf Python-2.7.12.tgz
cd Python-2.7.12
./configure &&make &&make install
mv /usr/bin/python /usr/bin/python2.6.6
ln -s /usr/local/bin/python2.7 /usr/bin/python
After upgrading Python, since the default python points to python3, yum does not work properly To use, you need to edit the yum configuration file:
[root@node1 ~]# python -V
Python 2.6.6
[root@node1 ~]# cp -rp /usr/bin/yum /usr/bin/yum.bak
# vi / usr/bin/yum
[root@node1 ~]# cat /usr/bin/yum | grep python
#!/usr/bin/python2.6
[root@pxc ~]# python -V
Python 2.7.5
Required if python2 Perform the following steps, if it is python 3, you can directly execute pip install superset
[root@pxc ~]# pip install virtualenv
[root@pxc ~]# virtualenv venv
New python executable in /root/venv/bin/python
Installing setuptools , pip, wheel...done.
[root@pxc ~]# . ./venv/bin/activate
(venv) [root@pxc ~]#
(venv) [root@pxc ~]#
(venv) [root@pxc ~]#
(venv) [root@pxc ~]#
(venv) [root@pxc ~]#
(venv) [root@pxc ~]#
(venv) [root@pxc ~]# pip install superset
# Install superset
pip install superset
# Create an admin user (you will be prompted to set username, first and last name before setting a password)
fabmanager create-admin --app superset
# Initialize the database
superset db upgrade
# Load some data to play with
superset load_examples
# Create default roles and permissions
superset init
# Start the web server on port 8088, use -p to bind to another port
superset runserver
# To start a development web server, use the -d switch
# superset runserver -d
http://localhost:8088