I'm trying to configure node client to connect to an elasticsearch cluster
that does not use multicast, but I'm running into problems. Also I'm
providing all settings programmatically to the NodeClient as I cannot use
an elasticsearch.yml file (mainly because cluster names and unicast hosts
names are different across environments and I don't know how to tell node
client to use a different yml file based on environment).
Using es 0.90.5, I have configured it as follows (no yml file, just this
Settings settings = ImmutableSettings.builder() .put("discovery.zen.ping.multicast.enabled", "false") .put("discovery.zen.ping.unicast.hosts", "es-a-qa-1, es-b-qa-1") .put("cluster.name", "search-0.90.5-1-qa") .build(); Node node =
But I get the following error.
30905 [elasticsearch[Courier][generic][T#1]] INFO
org.elasticsearch.discovery.zen - [Courier] failed to send join request
reason [org.elasticsearch.ElasticSearchTimeoutException: Timeout waiting
I can connect to both es-a-qa-1 and es-b-qa-1 nodes via telnet on 9300 and
What am I doing wrong?
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.