在Apache Superset中将druid集群添加为SQL数据库

编程入门 行业动态 更新时间:2024-10-28 12:29:29
本文介绍了在Apache Superset中将druid集群添加为SQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我目前通过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数据库

    本文发布于:2023-11-15 17:43:31,感谢您对本站的认可!
    本文链接:https://www.elefans.com/category/jswz/34/1596609.html
    版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
    本文标签:集群   中将   数据库   Superset   Apache

    发布评论

    评论列表 (有 0 条评论)
    草根站长

    >www.elefans.com

    编程频道|电子爱好者 - 技术资讯及电子产品介绍!