Unexpected error 'version' when trying to connect to Druid Datasource #19204
Unanswered
ankitmani2004
asked this question in
Q&A / Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
A clear and concise description of what the bug is.
I have Druid cluster and Superset running in Kube. Druid has 2 datasources. I have used amancevice superset image. My dockerfile is given below:
FROM amancevice/superset:latest
USER root
COPY config_frm_amancevice.py /usr/local/lib/python3.8/site-packages/superset/config.py
RUN pip install pydruid
RUN pip install "apache-superset[druid]"
USER superset
config_frm_amancevice.py file updating DRUID_IS_ACTIVE to True
Expected results
to connect the datasource in Druid
Actual results
Getting Error in UI:
Unexpected error
'version'
detailed log:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/superset/viz.py", line 540, in get_df_payload
df = self.get_df(query_obj)
File "/usr/local/lib/python3.8/site-packages/superset/viz.py", line 270, in get_df
self.results = self.datasource.query(query_obj)
File "/usr/local/lib/python3.8/site-packages/superset/connectors/druid/models.py", line 1390, in query
query_str = self.get_query_str(client=client, query_obj=query_obj, phase=2)
File "/usr/local/lib/python3.8/site-packages/superset/connectors/druid/models.py", line 968, in get_query_str
return self.run_query(client=client, phase=phase, **query_obj)
File "/usr/local/lib/python3.8/site-packages/superset/connectors/druid/models.py", line 1165, in run_query
self.cluster.get_druid_version()
File "/usr/local/lib/python3.8/site-packages/superset/connectors/druid/models.py", line 193, in get_druid_version
return json.loads(requests.get(endpoint, auth=auth).text)["version"]
KeyError: 'version'
How to reproduce the bug
Environment
(please complete the following information):
Beta Was this translation helpful? Give feedback.
All reactions