I have two clusters: pimsearch and elasticsearch both on the same
cluster pimsearch use port 9300
cluster elasticsearch use port 9301
the ips for the two clusters are 192.168.0.1, 192.168.0.2,
i connect to the cluster with TransportClient by setting
client.transport.sniff=true and addTransportAddress(192.168.0.1) on
port 9301 or 9300.
however, when i connect to 192.168.0.1:9301, the TransportClient
17:15:54 [elasticsearch[cached]-pool-2-thread-1] WARN
org.elasticsearch.client.transport [Slf4jESLogger.java:86]- [Kingo
Sunen] Node [Lyja][uwuwaLHDQOi1gt3FC2HOsg][inet[/10.18.102.103:9301]]
not part of the cluster Cluster [pimsearch], ignoring...
when i init TransportClient by setting "cluster.name" with
"elasticsearch", it works fine. confusing, as when i connect to
cluster "pimsearch", i do not need to set "cluster.name"
I do not know why this happens, as the node TransportClient connected
to should send back the cluster information.
could anybody here give me an explanation?