启动ES 多个节点 不能形成集群

Elasticsearch | 作者 xiaohei | 发布于2016年05月18日 | 阅读数:3403

基本情况:ES版本:1.6.1,安装了head插件; jdk版本:1.7_0_55;操作系统版本:WindowsServer2003
给别人做测试,启动es两个以上的节点不能形成集群

启动后报错为
[2016-05-18 10:37:41,593][INFO ][plugins                  ] [node0] loaded [analysis-ik, jdbc-1.4.0.8-93c6cde], sites [bigdesk, head]
[2016-05-18 10:37:41,640][INFO ][env                      ] [node0] using [1] data paths, mounts [[鏂板姞鍗?(D:)]], net usable_space [468.9gb], net total_spac[488.2gb], types [NTFS]
[2016-05-18 10:37:44,406][INFO ][node                     ] [node0] initialized
[2016-05-18 10:37:44,406][INFO ][node                     ] [node0] starting ...

[2016-05-18 10:37:44,593][INFO ][transport                ] [node0] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/222.161.229.163:9300]}
[2016-05-18 10:37:44,625][INFO ][discovery.zen.ping.multicast] [node0] multicast failed to start [SocketException[error setting options]], disabling. Consider u
sing IPv4 only (by defining env. variable `ES_USE_IPV4`)
[2016-05-18 10:37:44,640][INFO ][discovery                ] [node0] elasticsearch/7PcduXY4SEaaEGNRo2gFVg
[2016-05-18 10:37:59,671][INFO ][cluster.service          ] [node0] new_master [node0][7PcduXY4SEaaEGNRo2gFVg][server2][inet[/222.161.229.163:9300]]{master=true
}, reason: zen-disco-join (elected_as_master)
[2016-05-18 10:37:59,718][INFO ][gateway                  ] [node0] recovered [0] indices into cluster_state
[2016-05-18 10:37:59,781][INFO ][http                     ] [node0] bound_address {inet[/0.0.0.0:9200]}, publish_address {inet[/222.161.229.163:9200]}
[2016-05-18 10:37:59,781][INFO ][node                     ] [node0] started
 
ES的配置,node.name和两个端口号改过,其他的都没改动
10205.jpg
已邀请:

stab - freshman

赞同来自: xiaohei

两个节点在一个网段么?
不在一个网段的话,就设置成单播吧

nodexy - Another developer !

赞同来自: xiaohei


[2016-05-18 10:37:44,593][INFO ][transport                ] [node0] bound_address {inet[/0.0.0.0:9300]}, publish_address {inet[/222.161.229.163:9300]}
[2016-05-18 10:37:44,625][INFO ][discovery.zen.ping.multicast] [node0] multicast failed to start [SocketException[error setting options]], disabling. Consider u
sing IPv4 only (by defining env. variable `ES_USE_IPV4`)
 


看错误消息,你绑定貌似是一个公网ip ? 所以导致multicast失败?
另外,如果你内网存在多个es集群的可能,建议还是自己设置集群信息,配置为单播,自己设置集群名称。

要回复问题请先登录注册