AWS Elasticsearch with Java High Level Rest Client

Hi I'm trying to make queries using Java HighLevelRestClient to AWS ElasticSearch. Both are versions 6.0.1. As I try to connected I'm getting a:

org.apache.http.ConnectionClosedException: Connection closed

Is this something that AWS Elasticsearch does not support? This is my main piece of code:
RestHighLevelClient client = new RestHighLevelClient(
RestClient.builder(new HttpHost("localhost", 4430, "http")));

The REST high level client goes through the http port, so as long as you can access such port, the RestHighLevelClient should work as well as any other http client.

Cheers
Luca

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