TTNarendran
(Tt Narendran)
December 19, 2016, 10:35am
1
Kindly suggest whether is it necessary to include all the IP of elasticsearch node which can master/data/client node.
Is it enough to include the client node ip alone to communicate with the other nodes using transport client java api in Elasticsearch 5
TTNarendran
(Tt Narendran)
December 19, 2016, 11:09am
3
TransportClient client = new PreBuiltTransportClient(Settings.EMPTY)
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host1"), 9300))
.addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("host2"), 9300));
Whether it is necessary to include all the node ip suppose i have 3 nodes one data , client , master nodes
Is it necessary to include all the 3 IP using .addTransportAddres or enough to include only the data node IP.