Elasticsearch Native Java Client does not work behind proxy


I created new topic with new information.

We have Elasticsearch cluster which has own interfaces to interconnect (transport) traffic.

When the Elasticsearch Native Java Client used by Liferay connects our cluster using the given transportAddress(the proxy address and port) in its configuration file. It gets the response from Elasticsearch and gets the real addresses and tries to use them and fails. (Because there is no route from outer world to our interconnect)

Please any help how could either the Native Elastic client or Elasticsearch be configured to use the proxy so that the real addresses are not used in client's side?


Found the working configuration, for anyone who is interested





How do i connect with the java client to the elastic server by means of the Java API with a proxy in place??


Would that help? RestHighLevelClient - Accessing an elastic http endpoint behind reverse proxy

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.