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


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM