We're excited to announce that we're launching the second installment of Dataiku Product Days Register Now

Connecting DSS to an ElasticSearch cluster with url_prefix

ChristopheLeb
Level 1
Level 1
Connecting DSS to an ElasticSearch cluster with url_prefix

Hi!

I would like to create a connexion to my ES cluster which is exposed on port 80 behind a reverse proxy with "es" prefix. (So it can be accessed on http://my-domain.com/es).

Below is the code that I would use in Python to create the connection.
How can I configure that in the DSS GUI ? There doesn't seem to have any url_prefix field.

Thank you very much for your help !
Christophe

 

from elasticsearch import Elasticsearch, helpers

# Connection to ElasticSearch
es = Elasticsearch([{'host': 'my-domain.com', 'port': 80, 'url_prefix': 'es'}])
0 Kudos
2 Replies
sergeyd
Dataiker
Dataiker

Hi @ChristopheLeb 

As mentioned in support ticket you also opened, this is not currently possible to configure such connection (with prefixes in front of the ES API) in DSS UI. We marked this for the R&D team review for future enhancement.

As a possible workaround, you might want to configure your proxy to have an entrypoint like http://es.my-domain.com that redirects to http://my-domain.com/es. Then use es.my-domain.com in the elastic search config.

0 Kudos
ChristopheLeb
Level 1
Level 1
Author

Thank you for answer and advice.

 

Best regards.

Christophe

0 Kudos
A banner prompting to get Dataiku DSS