我目前通过Apache Superset中的druid连接器连接到druid集群。听说SQL可用于查询druid。可以将我的SQL数据库连接指向druid吗?
I currently connect to the druid cluster through the druid connector in Apache Superset. I heard that SQL can be used to query druid. Is it possible to point my SQL database connection to druid?
推荐答案按照下面的步骤
您需要使用最新版本的 pydruid 来启用sqlalchemy 支持。对我来说,pydruid 0.4.1可以正常工作。
You need to use latest version of pydruid for enabling sqlalchemy support. For me pydruid 0.4.1 is working fine.
在Superset上的数据库部分中,您需要提供 SQLAlchemy URI druid: //XX.XX:8082/druid/v2/sql / 使用代理ip /主机。
On Superset, in the Databases section you need to provide the SQLAlchemy URI druid://XX.XX:8082/druid/v2/sql/using a broker ip/host.
您需要的第三件事要做的是在经纪人上启用 druid.sql.enable = true 。
Third thing you need to do is to enable druid.sql.enable=true on broker.
我希望这会对您有所帮助。
I hope this will help you.
更多推荐
在Apache Superset中将druid集群添加为SQL数据库
发布评论