1. 检查Superset版本
(superset) [root@centos8 ~]$ pip show apache-superset
Name: apache-superset
Version: 2.0.0
Summary: A modern, enterprise-ready business intelligence web application
2. 检查SQLAlchemy版本
(superset) [root@centos8 ~]$ pip show SQLAlchemy
Name: SQLAlchemy
Version: 1.3.24
Summary: Database Abstraction Library
以上两步的目的是检查apache-superset 2.0.0 与 sqlalchemy的版本是否满足兼容要求,不匹配启动不了。
apache-superset 2.0.0 requires sqlalchemy!=1.3.21,<1.4,>=1.3.16
3. 安装clickhouse-sqlalchemy,必须指定 ==0.1.6 ,不然clickhouse-sqlalchemy下载最新版本会改变clickhouse-sqlalchemy的版本,造成与apache-superset不兼容。
pip install clickhouse-sqlalchemy==0.1.6
注意,不能安装sqlalchemy-clickhouse,如果安装了,使用 pip uninstall sqlalchemy-clickhouse 卸载掉,不然与会因为冲突造成apache-superset启动报错。
4. clickhouse连接地址
clickhousedb://{username}:{password}@{hostname}:8123/{database}