报错如下:
[master-a.example.com] master not discovered yet, this node has
not previously joined a bootstrapped (v7+) cluster, and this
node must discover master-eligible nodes [master-a, master-b] to
bootstrap a cluster: have discovered [{master-b.example.com}{...
解决方案如下:
The node names used in the cluster.initial_master_nodes list must exactly
match the node.name properties of the nodes. By default the node name is
set to the machine’s hostname which may or may not be fully-qualified
depending on your system configuration. If each node name is a fully-qualified
domain name such as master-a.example.com then you must use fully-qualified
domain names in the cluster.initial_master_nodes list too; conversely if your
node names are bare hostnames (without the .example.com suffix) then you must
use bare hostnames in the cluster.initial_master_nodes list. If you use a mix
of fully-qualifed and bare hostnames, or there is some other mismatch between
node.name and cluster.initial_master_nodes, then the cluster will not
form successfully and you will see log messages like the following.