首页 > 解决方案 > 将 ElasticSearch 连接到超集

问题描述

我需要将 ElasticSearch 连接到 Superset 以进行可视化。当我在 Sources> Databases 中签入 Superset 时,它提到使用 SQLAlchemy URI 和 Database 来测试连接。

在我们的例子中,ElasticSearch 与 Python 库连接,而不是使用 SQLAlchemy。

是否有任何方法可以使用 Python 库将 Elastic Search 与 Superset 连接起来,如果可以,请您通过提及连接方式来提供帮助。

提前致谢。

问候,纳文。

标签: pythonelasticsearchsuperset

解决方案


您可以通过文档中提到的方式进行连接。您需要添加超集安装程序文档中提到的 dbapi python 包,这将帮助您使用 url elasticsearch+http://{user}:{password 连接到 elk }@{主机}:9200/

pip install elasticsearch-dbapi


推荐阅读