在Apache Superset中将druid集群添加为SQL数据库 [英] Add a druid cluster as a SQL database in Apache Superset

查看:325
本文介绍了在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?

推荐答案

按照下面的步骤


  1. 您需要使用最新版本的 pydruid 来启用sqlalchemy
    支持。对我来说,pydruid 0.4.1可以正常工作。

  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数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆