Bootstrapping a new cluster failed with ES7.0

I have setdiscovery.seed_hosts and cluster.initial_master_nodes with three master node.
ES outputs this message in log:

[WARN ][o.e.c.c.ClusterFormationFailureHelper] [] master not discovered yet, thisnode has not previously joined a bootstrapped (v7+) cluster, and this node must discover master-eligible nodes [,,] to bootstrap a cluster: have discovered [{}{pzf5WD4KSzeyU1j2nUycVw}{_adKfIIJQ-KuQ-bsllqxuw}{}{}{, xpack.installed=true}, {}{PTNBlHXwTv-DiRKraJFGww}{GLHvL60-RgWoubD1hVN4rQ}{}{}{, xpack.installed=true}]; discovery will continue using [,] from hosts providers and [{}{lRjoe29OQKOWYF15DbLzfA}{wC1wWdzRTy--ALoKZPo1Dg}{}{}{, xpack.installed=true}] from last-known cluster state; node term 0, last-accepted version 0 in term0

Then I set logger level to TRAC , and the log just like this .
I use hostname as node name, It exactly correct.

Finally, I change discovery.seed_hosts and cluster.initial_master_nodes settings to IP not hostname, it worked!

So I wondering why can not bootstrap a cluster using hostname, but IP does?

cluster.initial_master_nodes accepts node names, not hostnames, although sometimes a node name will be set to a hostname. See this note in the docs for more information.

Yes, I use {HOSTNAME} as and I use real hostname as not {HOSTNAME}, failed bootstrap either.

Right, so your node name is but your cluster.initial_master_nodes is looking for a node called and they're not the same.

Beacuse I add tcp port after hostname, did you mean tcp port should not add to cluster.initial_master_nodes ? or Using hostname can not add tcp port?

cluster.initial_master_nodes should be a list of node names. Your node names don't contain ports. Therefore cluster.initial_master_nodes shouldn't contain ports. See again this note in the docs, which starts:

The node names used in the cluster.initial_master_nodes list must exactly match the properties of the nodes.

Thanks for helping me to figure out.
I misunderstande that tcp port can add to node name after reading this docs


My fault.

I see, yes. That only applies if you've got more than one node with the same IP address, but it does only work with IP addresses.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.