org.elasticsearch.client.transport.NoNodeAvailableException:

org.elasticsearch.client.transport.NoNodeAvailableException: 
	None of the configured nodes were available: [
		{node-test-1}{9k3df-q7RbKmVsvSZbCCAg}{Si5hoRn5QWKZTm8rhkmdpg}{192.168.206.212}{192.168.206.212:9300}, 
		{node-test-3}{EF67GEwiQrWWXJH8VLeJ4w}{ZxpQ3MGsQra4jYO-pz58hw}{192.168.206.212}{192.168.206.212:9302}, 
		{node-test-2}{BprNEFgvR_mGK_X0B3Gc2g}{PRz5oYXwR9-fsFajIAb8NQ}{192.168.206.212}{192.168.206.212:9301}]
	org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:291)
	org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:51)
	org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:505)
	org.elasticsearch.action.TransportActionNodeProxy.execute(TransportActionNodeProxy.java:51)
	org.elasticsearch.client.transport.TransportProxyClient.lambda$execute$0(TransportProxyClient.java:60)
	org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:294)
	org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:51)
	org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:505)
	org.elasticsearch.action.TransportActionNodeProxy.execute(TransportActionNodeProxy.java:51)
	org.elasticsearch.client.transport.TransportProxyClient.lambda$execute$0(TransportProxyClient.java:60)
		Caused by: org.elasticsearch.transport.NodeNotConnectedException: [node-test-3][192.168.206.212:9302] Node not connected
	org.elasticsearch.transport.TcpTransport.getConnection(TcpTransport.java:692)
	org.elasticsearch.transport.TcpTransport.getConnection(TcpTransport.java:122)
	org.elasticsearch.transport.TransportService.getConnection(TransportService.java:525)
	org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:501)
	org.elasticsearch.action.TransportActionNodeProxy.execute(TransportActionNodeProxy.java:51)
	org.elasticsearch.client.transport.TransportProxyClient.lambda$execute$0(TransportProxyClient.java:60)
	org.elasticsearch.client.transport.TransportClientNodesService$RetryListener.onFailure(TransportClientNodesService.java:294)
	org.elasticsearch.action.ActionListenerResponseHandler.handleException(ActionListenerResponseHandler.java:51)
	org.elasticsearch.transport.TransportService.sendRequest(TransportService.java:505)
	org.elasticsearch.action.TransportActionNodeProxy.execute(TransportActionNodeProxy.java:51)

环境:

org.elasticsearch.client.transport  : 6.1.1

redisson: 3.10.0

问题:

刚开始是在本地有时候能连上,有时候不能连接上,在开发环境的服务器能连上,测试环境的服务器又不能连接上,就不稳定。但是后来就在本地不稳定,测试环境就是连接不上。

后来认真思考了下,创建客户端的时候是能连接上集群的, 保存数据到es中,却不行,应该就是网络问题,最后查看依赖发现,es的transport客户端和redisson 的客户端都引用了netty这个框架,在es的transport的客户端中 netty-codec-http 的版本号是:4.1.13; 而redisson中的netty的版本为4.1.32 版本过高,所以导致es 的问题,

最后的解决方案是降低redisson的版本

总结就是依赖的冲突问题,仔细检查依赖,特别是netty框架

 

 

你可能感兴趣的:(框架)