docker安裝superset

簡介

曾用名Caravel, Panoramix, 是由Airbnb(知名在線房屋短租公司)開源的數(shù)據(jù)分析與可視化平臺, 該工具主要特點是可自助分析, 自定義儀表盤, 分析結(jié)果可視化(導出), 用戶/角色權(quán)限控制, 還集成了一個SQL編輯器, 可以進行SQL編輯查詢等。

安裝

  1. 新建配置文件目錄(例子:/etc/superset)
mkdir /etc/superset
  1. 編輯配置文件superset_config.py
vim /etc/superset/superset_config.py

## 內(nèi)容
#---------------------------------------------------------
# Superset specific config
#---------------------------------------------------------
ROW_LIMIT = 5000
SUPERSET_WORKERS = 4

SUPERSET_WEBSERVER_PORT = 8088
#---------------------------------------------------------

#---------------------------------------------------------
# Flask App Builder configuration
#---------------------------------------------------------
# Your App secret key
SECRET_KEY = '\2\1thisismyscretkey\1\2\e\y\y\h'

# The SQLAlchemy connection string to your database backend
# This connection defines the path to the database that stores your
# superset metadata (slices, connections, tables, dashboards, ...).
# Note that the connection information to connect to the datasources
# you want to explore are managed directly in the web UI
SQLALCHEMY_DATABASE_URI = 'sqlite:////path/to/superset.db'

# Flask-WTF flag for CSRF
WTF_CSRF_ENABLED = True
# Add endpoints that need to be exempt from CSRF protection
WTF_CSRF_EXEMPT_LIST = []

# Set this API key to enable Mapbox visualizations
MAPBOX_API_KEY = ''
  1. 下載鏡像并啟動
docker run --detach -p 8088:8088 -v /etc/superset/:/etc/superset --name superset amancevice/superset

-p 8080:8080是把主機的8088端口影射到容器的8088端口,這樣通過主機的http://ip:8088可以訪問容器的superset服務(wù)。
-v 是影射配置文件的目錄

  1. 初始化數(shù)據(jù)遠
docker exec -it superset superset-init

訪問

http://ip:8088

阿里云服務(wù)器需要開通8088端口的訪問權(quán)限

參考:
https://hub.docker.com/r/amancevice/superset/
http://www.itdecent.cn/p/a6fe79d0b1b3
https://superset.incubator.apache.org/installation.html#configuration

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時請結(jié)合常識與多方信息審慎甄別。
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務(wù)。

相關(guān)閱讀更多精彩內(nèi)容

友情鏈接更多精彩內(nèi)容