superset在Centos7的安装

 

在centos7下安装superset 主要参考资料:https://www.jianshu.com/p/fc24955e295d  感谢博主。 

在安装过程中出现以下问题:

 1.在创建用户时提示出错,缺少contextlib插件。直接安装通过 

2.在superset db update时出错,提示 importerror: cannot import name encryptedtype 从网页https://github.com/apache/incubator-superset/issues/4953 查询资料发现要求 SQLAlchemy-Utils <0.33,使用pip show SQLAlchemy-Utils发现版本为0.33.2 使用pip install SQLAlchemy-Utils == 0.32.0 安装后,通过。 

3.在安装完成后,mapbox报错:An error occurred while rendering the visualization: Error: An API access token is required to use Mapbox GL.。查询发现需在superset的config.py中添加mapbox_api_Key。默认脚本中此值为空。进行www.mapbox.com注册新账号。在https://www.mapbox.com/install/直接给出了自己的api_key.将此key写入到config.py中。重启服务器正常。

 

Note:

  关闭selinux 在/etc/selinux/config中设置selinux状态为disabled 此文件夹为一链接。正常文件为/etc/sysconfig/selinux中。

  安装mysql,网址为:https://my.oschina.net/Laily/blog/713023

posted @ 2018-05-16 10:03  burningsky  阅读(2674)  评论(0编辑  收藏  举报