数据可视化 BI 系统Superset安装及常见问题

Coding Alan 5年前 (2019-06-20) 8653次浏览 0个评论 扫描二维码

安装

安装依赖

安装 Python

安装 Superset

GitHub:https://github.com/apache/incubator-superset

文档:https://superset.incubator.apache.org/installation.html

数据可视化 BI 系统Superset安装及常见问题

数据表操作

根据所需连接数据库,需安装相同的 PyPi 包,如 MySQL:pip install mysqlclient,其它的请参见官方文档

  1. 进入 Sources > Databases,点击添加,输入名称,SQLAlchemy URI:mysql://user:passwd@xxx.xxx.xxx.xxx/db_name
  2. 进入 Sources > Tables,点击添加,选择数据库,并填写数据表名
  3. 进入 Charts,点击添加,选择数据源及可视化类型

添加配置文件

所有配置项参见:https://github.com/apache/incubator-superset/blob/master/superset/config.py

将 sqlite3切换迁移为 PostgreSQL

 

常见问题

1、subprocess.CalledProcessError: Command ‘(‘lsb_release’, ‘-a’)’ returned non-zero exit status 1.

查看lsb_release.py所在目录

将对应的lsb_release.py文件拷贝到subprocess.py目录下,如:

2、Was unable to import superset Error: No module named ‘_sqlite3’

3、 Was unable to import superset Error: cannot import name ‘_maybe_box_datetimelike’

安装更低版本的 pandas

4、sqlalchemy.exc.InvalidRequestError: Can’t determine which FROM clause to join from, there are multiple FROMS which can join to this entity. Try adding an explicit ON clause to help resolve the ambiguity.

在执行superset db upgrade是发生的报错,需安装低版本sqlalchemy

5、OSError: mysql_config not found

 

 

 

喜欢 (0)
[]
分享 (0)
发表我的评论
取消评论

表情 贴图 加粗 删除线 居中 斜体 签到

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址