This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
SuperSet errors with AWS Elasticsearch [Kibana version 6.8.0] #17347
Labels
question & help wanted
Use Github discussions instead
I have installed elasticsearch-dbapi library, and I have setup a connection to AWS elasticsearch [running Kibana version 6.8.0] with the following connection string:
Superset is able to successfully connect to the ES endpoint, and get the list of indexes correctly. As I see that the dropdown for tables is correctly populated. However, its not able to parse index metadata and run SQL query on ES:
Below I have provided as much details as possible for the issues relating to
1. Superset is not able to parse the index metadata:
Error
File "/usr/local/lib/python3.7/site-packages/es/opendistro/api.py", line 236, in get_valid_columns
response[index_real_name]["mappings"]["properties"], []
KeyError: 'properties'
Application Logs
2. SuperSet gets 400 Bad Request error from ES endpoint, when running a SQL query for ES index.
Sample response from the above REST call:
However, elasticsearch-dbapi is not able to parse this correctly, and shows the error as shown in the screenshot below.
Application Logs
How to reproduce the bug
Expected results
For problem 1, superset should correctly parse the index metadata.
For problem 2, superset should correctly form the query request for ES server.
Actual results
For problem 1: See Screenshot 1
For problem 2: See Screenshot 2
Screenshots
For Problem 1:

For problem 2:
Run query like:
SELECT * FROM dummy_index where some_id = 1 order by id DESC limit 1
Environment
1.3.1
3.7
node -v
0.2.6
7.13.4
6.8.0
Checklist
Make sure to follow these steps before submitting your issue - thank you!
Additional context
I looked into a similar issue described here Trouble connecting to AWS OpenSearch via Superset, but my issue seems to be different from theirs. For me, It seems that the connection to Elastic search is succeeding. However, there are issues with parsing of the data / forming right POST request in the library.
Any help is greatly appreciated.
The text was updated successfully, but these errors were encountered: