Hi Experts,
I am first timer - created a HLRestClient to utilize BulkProcessor to push bulk data asynchronously to my cluster. Everything works great.
Details:
node list is provided in prop file as below:
el_hosts=node1.com,node2.com,node3.com
I loop though and prepare HttpHost list.
for (int i = 0; i < hostNames.length; i++) {
HttpHost host = new HttpHost(hostNames[i]
, port
, scheme);
hosts[i] = host;
}
Finally the client:
client = new RestHighLevelClient(
RestClient.builder(
hosts
));
The problem I am facing is, if one of the node from the list, is down.. the HLRestClient is not able to option the connection at all.
How should I configure so that my client can manage to get master and push the data fro the list?