#解压缩
[root@JD src]# tar -xf Python-3.6.6.tgz
#配置
[root@JD Python-3.6.6]# ./configure
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking for python3.6... no
checking for python3... no
checking for python... python
checking for --enable-universalsdk... no
checking for --with-universal-archs... no
checking MACHDEP... linux
checking for --without-gcc... no
checking for --with-icc... no
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/src/Python-3.6.6':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
安装gcc 解决报错
yum -y install gcc
重新执行配置
[root@JD Python-3.6.6]# ./configure
#安装
[root@JD Python-3.6.6]# make && make install
(superset-py3) [root@JD src]# vi superset-py3/lib/python3.6/site-packages/superset/config.py
修改superset配置⽂件,将默认的sqlite3数据库改为MySQL找到:
SQLALCHEMY_DATABASE_URI = 'mysql://root:mysqladmin@JD/superset?charset=utf8'
mysql创建superset数据库
create database `superset`;
初始化
#建立管理员账号 jepson,密码123456
(superset-py3) [root@JD src]# fabmanager create-admin --app superset
fabmanager is going to be deprecated in 2.2.X, you can use the same commands on the improved 'flask fab <command>'
Username [admin]: admin
User first name [admin]: admin
User last name [user]: admin
Email [admin@fab.org]: 790461730@qq.com
Password:
Repeat for confirmation:
2019-12-30 01:53:38,115:INFO:root:Configured event logger of type <class 'superset.utils.log.DBEventLogger'>
Recognized Database Authentications.
Admin User admin created.
(superset-py3) [root@JD src]# superset db upgrade
#初始化superset数据库
(superset-py3) [root@JD src]# superset init
mysql执行
alter table superset.table_columns modify type varchar(255);