问题一:
# fabmanager create-admin --app superset
setuptools_scm.version.SetuptoolsOutdatedWarning: your setuptools is too old (<12)
解决方法:
pip install --upgrade setuptools
问题二:
# fabmanager create-admin --app superset
libmysqlclient.so.18:cannot open shared object file: no such file or directory,
解决方法:缺少libmysqlclient.so.18,需要安装mysqlclient。
ROOT权限下: yum install mysql-devel // 一般选择这种方法,,(不同的平台安装的包不一样,如果不能安装mysql-devel,可以选择rpm包安装,或者安装libmysql-devel)
virtualenv下: pip install mysqlclient
如果/usr/lib64/mysql目录下没有libmysqlclient.so.18,,看一下/usr/lib64或者/lib64目录下是否存在,如果不存在再安装其他的软件包
问题三:
ERROR: flask-appbuilder 1.9.6 has requirement click==6.7, but you'll have click 7.0 which is incompatible.
解决方法:
# grep click /opt/incubator-superset/requirements.txt // 将文件中的 " click==6.7 " 改为 " click==7.0 "
click==7.0
问题四:
ImportError: No module named flask_compress
解决方法:
创建一个新的virtualenv : virtualenv flask
cd 进入flask目录
激活最新创建的这个 virtualenv: source bin/activate
安装flask: pip install flask
问题五:
Was unable to import superset Error: No module named MySQLdb
解决方法:
pip install mysql-python
对于不同的系统和程序有如下的解决方法: easy_install mysql-python (mix os) pip install mysql-python (mix os/ python 2) pip install mysqlclient (mix os/ python 3) apt-get install python-mysqldb (Linux Ubuntu, ...) cd /usr/ports/databases/py-MySQLdb && make install clean (FreeBSD) yum install MySQL-python (Linux Fedora, CentOS ...)
问题六:
# superset db upgrade Loaded your LOCAL configuration at [/usr/lib64/python2.7/superset_config.pyc] 2019-06-24 17:58:48,408:ERROR:flask_appbuilder.security.sqla.manager:DB Creation and initialization failed: (_mysql_exceptions.OperationalError) (1130, "Host '192.168.3.4' is not allowed to connect to this MySQL server") (Background on this error at: http://sqlalche.me/e/e3q8)
解决方法:
mysql -uroot -proot
mysql> grant all privileges on *.* to root@192.168.3.4 identified by '123';
mysql> flush privileges;