superset-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [superset] ankitmani2004 opened a new issue #13604: Unexpected error 'version' when trying to connect to Druid Datasource
Date Fri, 12 Mar 2021 19:29:41 GMT

ankitmani2004 opened a new issue #13604:
URL: https://github.com/apache/superset/issues/13604


   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
   
   1. Go to 'Superset UI'
   2. Click on 'Data' then on "Druid Clusters"
   3. Give Druid broker host and port name
   4. Click on 'Data' then on "Druid Datasources"
   5. Give the datasource name and SAVE
   6. click on Datasource name
   7. See error
   
   ### Environment
   
   (please complete the following information):
   
   - superset version: 1.0.1
   - python version: 3.8
   
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Mime
View raw message