Elasticsearch Native Java Client does not work behind proxy

Hi,

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?

Cheers

Found the working configuration, for anyone who is interested

transportAddresses="10.1.10.10:8090,10.1.10.11:8090,10.1.10.12:8090"

operationMode="REMOTE"

clusterName="es-cluster"

clientTransportSniff="false"

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

Welcome!

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.