Elasticse启动报错-java.lang.IllegalStateException: failure when sending a validation request to node...

  1. 报错问题描述:
[2019-09-04T17:51:32,265][INFO ][o.e.c.c.JoinHelper       ] [node18701] failed to join {node9701}{rh-c4DTFSsCr3fPYYAhGdQ}{UZxODZrbRey6NRl2gDBwiw}{192.168.1.97}{192.168.1.97:9301}{dim}{ml.machine_memory=8072921088, ml.max_open_jobs=20, xpack.installed=true} with JoinRequest{sourceNode={node18701}{Pj07gNlcRI6PVPZHBLYpkA}{14QtIqnJTVGXV7IyUbtyeA}{192.168.1.187}{192.168.1.187:9301}{di}{ml.machine_memory=8072921088, xpack.installed=true, ml.max_open_jobs=20}, optionalJoin=Optional[Join{term=6, lastAcceptedTerm=1, lastAcceptedVersion=1, sourceNode={node18701}{Pj07gNlcRI6PVPZHBLYpkA}{14QtIqnJTVGXV7IyUbtyeA}{192.168.1.187}{192.168.1.187:9301}{di}{ml.machine_memory=8072921088, xpack.installed=true, ml.max_open_jobs=20}, targetNode={node9701}{rh-c4DTFSsCr3fPYYAhGdQ}{UZxODZrbRey6NRl2gDBwiw}{192.168.1.97}{192.168.1.97:9301}{dim}{ml.machine_memory=8072921088, ml.max_open_jobs=20, xpack.installed=true}}]}
org.elasticsearch.transport.RemoteTransportException: [node9701][192.168.1.97:9301][internal:cluster/coordination/join]
Caused by: java.lang.IllegalStateException: failure when sending a validation request to node
	at org.elasticsearch.cluster.coordination.Coordinator$2.onFailure(Coordinator.java:506) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.cluster.coordination.JoinHelper$5.handleException(JoinHelper.java:360) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1111) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.transport.TransportService$ContextRestoreResponseHandler.handleException(TransportService.java:1111) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.transport.InboundHandler.lambda$handleException$2(InboundHandler.java:246) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingRunnable.run(ThreadContext.java:688) ~[elasticsearch-7.3.0.jar:7.3.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:835) [?:?]
Caused by: org.elasticsearch.transport.RemoteTransportException: [node18701][192.168.1.187:9301][internal:cluster/coordination/join/validate]
Caused by: org.elasticsearch.cluster.coordination.CoordinationStateRejectedException: join validation on cluster state with a different cluster uuid y9vTIlpmRo6FDJdktnL6lQ than local cluster uuid PQGXcj-NQ_K_GfIJlzu_0g, rejecting
	at org.elasticsearch.cluster.coordination.JoinHelper.lambda$new$4(JoinHelper.java:148) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler$1.doRun(SecurityServerTransportInterceptor.java:257) ~[?:?]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.xpack.security.transport.SecurityServerTransportInterceptor$ProfileSecuredRequestHandler.messageReceived(SecurityServerTransportInterceptor.java:315) ~[?:?]
	at org.elasticsearch.transport.RequestHandlerRegistry.processMessageReceived(RequestHandlerRegistry.java:63) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.transport.InboundHandler$RequestHandler.doRun(InboundHandler.java:267) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.common.util.concurrent.ThreadContext$ContextPreservingAbstractRunnable.doRun(ThreadContext.java:758) ~[elasticsearch-7.3.0.jar:7.3.0]
	at org.elasticsearch.common.util.concurrent.AbstractRunnable.run(AbstractRunnable.java:37) ~[elasticsearch-7.3.0.jar:7.3.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
	at java.lang.Thread.run(Thread.java:835) ~[?:?]

  1. 原因

该节点之前已经启动过,有历史数据没有清理;

  1. 解决方法

查看/config/elasticsearch.yml文件中配置的path.data目录,进入该目录并删除。重新启动即可

转载于:https://my.oschina.net/yyqz/blog/3102035

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值