Hi,
afaik with this setup (two clients, two clusters) you need to run request on each of them independently. There is something called a Tribe Node which can connect to multiple clusters, but for your particular case this won't help much, it cannot handle indices with the same name in multiple clusters.
Thanks , i created cluster elasticsearch in port 9200, elasticsearch1 in 9201 and i change cluster name defaul in .yml to :elasticsearch2. After i use terminal
i success creat cluster in port 9202 like you say, i can see index in cluster elasticsearch and elasticsearch1.
I can check all index exist in curl 'localhost:9202/_cat/indices?v' .
The client allows to sniff the rest of the cluster, and add those
into its list of machines to use. In this case, note that the IP
addresses used will be the ones that the other nodes were started
with (the "publish" address). In order to enable it, set the
client.transport.sniff to true:
But i cant understand what really happen. Pls explain me
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.