Connecting DSS to an ElasticSearch cluster with url_prefix

ChristopheLeb
ChristopheLeb Registered Posts: 2 ✭✭✭
edited July 2024 in Setup & Configuration

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'}])

Answers

  • Sergey
    Sergey Dataiker, Dataiku DSS Core Designer, Dataiku DSS & SQL, Dataiku DSS Core Concepts, Registered Posts: 365 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.

  • ChristopheLeb
    ChristopheLeb Registered Posts: 2 ✭✭✭

    Thank you for answer and advice.

    Best regards.

    Christophe

Setup Info
    Tags
      Help me…