Hi all, My ES cluster has 3 nodes include 10.40.12.51, 10.40.12.52, 10.40.12.53 by TCP transport.
if I only connect to node 10.40.12.51 (no connect 10.40.12.52, 10.40.12.53 ) the sample code
Please could you try and format your post a bit better, using the </> button for code. It's quite hard to read when it looks like the post above, and this makes it much less likely to receive an answer.
I do not completely understand the question, but I think you are asking how to tell the client to connect to multiple transport addresses. If so, I think the answer is to call addTransportAddress multiple times.
(Also, sorry to nitpick, but the greeting "Hi guys" doesn't greet those of us that aren't guys; I suggest saying something like "Hi all" if you want, although no such greeting is really necessary here).
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.