Elasticsearch 5.0.0。集群节点未加入 [英] Elasticsearch 5.0.0. cluster node not joining

查看:1174
本文介绍了Elasticsearch 5.0.0。集群节点未加入的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

确定这不应该这么难,我试图在弹性搜索集群中运行2个节点,并在尝试启动节点1(已经启动了主节点的节点2)时遇到异常。使用elasticsearch v 5.0.0两个实例



异常:无法将连接请求发送给主机,原因RemoteTransportException无法添加节点已找到节点具有相同的ID但是不同的节点实例]



节点1配置:



node.name:SANNNNN-1



network.host:10.3.185.250



发现。 zen.ping.unicast.hosts:[10.3.185.251:9300]



节点2配置:



node.name:SAN-2



network.host:10.3.185.251



discovery.zen.ping.unicast.hosts:[10.3.185.251:9300]



节点2上的完全异常:



[INFO] [oedzZenDiscovery] [SANNNNN-1]无法将加入请求发送给Master [{SAN-2} {DxExoYHHTu2-rFvuvQSuEg} {OfYBe97HQCmcha63CFiYlQ} {10.3 .185.251} {10.3.185.251:9300}],原因[RemoteTransportException [[SAN-2] [10.3.185.251:9300] [internal:discover Y /禅/加入]];嵌套:IllegalArgumentException [无法添加节点{SANNNNN-1} {DxExoYHHTu2-rFvuvQSuEg} {hP4gLRugRgWzSuNnEhGHSw} {10.3.185.250} {10.3.185.250:9300},找到现有节点{SAN-2} {DxExoYHHTu2-rFvuvQSuEg} {OfYBe97HQCmcha63CFiYlQ } {10.3.185.251} {10.3.185.251:9300}具有相同的id,但是不同的节点实例]; ]

解决方案

确定,所以问题是将弹性搜索文件夹从一个节点复制到另一个节点。 Elasticsearch将节点ID保存在elasticsearch / data / folder中。删除一个节点上的数据文件夹并重新启动它。集群已启动并运行。希望这样可以节省人们的麻烦。


Ok this shouldn't be this hard, I'm trying to run 2 nodes in an elasticsearch cluster and getting an exception when trying to start node-1(node-2 which is master is already started). Using elasticsearch v 5.0.0 for both instances

Exception: failed to send join request to master, reason RemoteTransportException can't add node found existing node with the same id but is a different node instance]

Node-1 config:

node.name: SANNNNN-1

network.host: 10.3.185.250

discovery.zen.ping.unicast.hosts: ["10.3.185.251:9300"]

Node-2 config:

node.name: SAN-2

network.host: 10.3.185.251

discovery.zen.ping.unicast.hosts: ["10.3.185.251:9300"]

Full Exception on node 2:

[INFO ][o.e.d.z.ZenDiscovery ] [SANNNNN-1] failed to send join request to master [{SAN-2}{DxExoYHHTu2-rFvuvQSuEg}{OfYBe97HQCmcha63CFiYlQ}{10.3.185.251}{10.3.185.251:9300}], reason [RemoteTransportException[[SAN-2][10.3.185.251:9300][internal:discovery/zen/join]]; nested: IllegalArgumentException[can't add node {SANNNNN-1}{DxExoYHHTu2-rFvuvQSuEg}{hP4gLRugRgWzSuNnEhGHSw}{10.3.185.250}{10.3.185.250:9300}, found existing node {SAN-2}{DxExoYHHTu2-rFvuvQSuEg}{OfYBe97HQCmcha63CFiYlQ}{10.3.185.251}{10.3.185.251:9300} with the same id but is a different node instance]; ]

解决方案

Ok so the issue was copying the elasticsearch folder from one node to another over scp. Elasticsearch saves the node id in elasticsearch/data/ folder. Deleted the data folder on one node and restarted it. The cluster is up and running. Hope this saves someone the hassle.

这篇关于Elasticsearch 5.0.0。集群节点未加入的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆