SuperSet CentOs7安装部署

来源:互联网 发布:先导爱知 编辑:程序博客网 时间:2024/05/01 22:55

直接开始!

1、root用户(su root)[root@localhost sp]# yum install gcc libffi-devel python-devel python-pip python-wheel openssl-devel libsasl2-devel openldap-devel

中间有两次如出现确认信息全部输入y:Is this ok [y/d/N]: y

2、[root@localhost sp]# sudo yum -y install python-pip

3、[root@localhost sp]# pip install virtualenv 


4、[root@localhost sp]# virtualenv venv


5、[root@localhost sp]# . ./venv/bin/activate 


6、(venv) [root@localhost sp]# pip install superset 
漫长的等待、结果出来以后如果报如下错误:
  gcc -pthread -fno-strict-aliasing -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -DNDEBUG -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -mtune=generic -D_GNU_SOURCE -fPIC -fwrapv -fPIC -Isasl -I/usr/include/python2.7 -c sasl/saslwrapper.cpp -o build/temp.linux-x86_64-2.7/sasl/saslwrapper.o
  gcc: error trying to exec 'cc1plus': execvp: No such file or directory
  error: command 'gcc' failed with exit status 1


 解决办法:(venv) [root@localhost sp]# yum install gcc-c++


7、(venv) [root@localhost sp]# fabmanager create-admin --app superset


8、(venv) [root@localhost sp]# superset db upgrade


9、(venv) [root@localhost sp]# superset load_examples


10、(venv) [root@localhost sp]# superset init


11、(venv) [root@localhost sp]# superset runserver


12、打开浏览器输入:http://localhost:8088


成功!