Add a druid cluster as a SQL database in Apache Superset

前端 未结 2 1235
温柔的废话
温柔的废话 2021-02-04 13:45

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 con

相关标签:
2条回答
  • 2021-02-04 14:12

    i was really struggling with this one... in my case, i am running on my mac. druid is installed directly and superset is running in docker (using the docker-compose setup).

    the key is that localhost in the superset docker container doesn't point at the host, but instead at the docker container.

    when i changed the superset datasource to this, it worked...

    druid://host.docker.internal:8082/druid/v2/sql/
    
    0 讨论(0)
  • 2021-02-04 14:15

    Follow the steps below

    1. You need to use latest version of pydruid for enabling sqlalchemy support. For me pydruid 0.4.1 is working fine.

    2. 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.

    3. Third thing you need to do is to enable druid.sql.enable=true on broker.

    I hope this will help you.

    0 讨论(0)
提交回复
热议问题