org.elasticsearch.client.transport.NoNodeAvailableException。。解决办法
2017-02-24 20:00
579 查看
终于,终于,终于,
解决了。
看到了很多版本的答案,却始终没有解决问题,
查看了源码,看了配置文件,终于解决了。
分享给大家。
Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException: None
of the configured nodes are available:
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:278)
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:197)
at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)
at org.elasticsearch.client.support.AbstractClient.bulk(AbstractClient.java:163)
at org.elasticsearch.client.transport.TransportClient.bulk(TransportClient.java:364)
at org.elasticsearch.action.bulk.BulkRequestBuilder.doExecute(BulkRequestBuilder.java:164)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)
at com.hansight.utils.EsUtils.importData(EsUtils.java:134)
at com.hansight.utils.EsUtils.main(EsUtils.java:173)
解决思路:
1.查看
解决了。
看到了很多版本的答案,却始终没有解决问题,
查看了源码,看了配置文件,终于解决了。
分享给大家。
Exception in thread "main" org.elasticsearch.client.transport.NoNodeAvailableException: None
of the configured nodes are available:
at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:278)
at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:197)
at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)
at org.elasticsearch.client.support.AbstractClient.bulk(AbstractClient.java:163)
at org.elasticsearch.client.transport.TransportClient.bulk(TransportClient.java:364)
at org.elasticsearch.action.bulk.BulkRequestBuilder.doExecute(BulkRequestBuilder.java:164)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)
at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)
at com.hansight.utils.EsUtils.importData(EsUtils.java:134)
at com.hansight.utils.EsUtils.main(EsUtils.java:173)
解决思路:
1.查看
luster.name,是否是你服务器上在elasticsearch.yml上配置的
2.查看
port:9300
val client = TransportClient.builder().settings(settings).build() .addTransportAddress(new InetSocketTransportAddress(InetAddress.getByName("******"), 9300))
3.查看
服务器的防火墙,是否关了。
4.查看
如果设置client.transport.sniff为true,则表示客户端去嗅探整个cluster的状态,把集群中其它机器的ip地址加到客户端中
相关文章推荐
- ES使用org.elasticsearch.client.transport.NoNodeAvailableException: No node available 错误解决方法
- 记录一次Elasticsearch线上部署后出现:org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []的问题解决
- spark连接es的问题java.lang.ClassNotFoundException:org.elasticsearch.client.transport.NoNodeAvailableExcep
- org.elasticsearch.client.transport.NoNodeAvailableException
- org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are availa
- org.elasticsearch.client.transport.NoNodeAvailableException: No node available
- org.elasticsearch.transport.TransportSerializationException: Failed to deserialize response解决方案
- org.apache.subversion.javahl.ClientException: Item is not readable 解决办法
- (转)Elasticsearch NoNodeAvailableException None of the configured nodes are available
- carrot2 Workbench org.apache.http.client.HttpResponseException: Not Found 以及其他类找不到错误的解决办法
- es分布式 索引复制异常:org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception
- org.apache.subversion.javahl.ClientException: Item is not readable 解决办法
- org.apache.subversion.javahl.ClientException: svn: E175002: Commit failed 的解决办法
- Elasticsearch报 NoNodeAvailableException 的解决办法
- ElasticSearch NoNodeAvailableException
- es分布式 索引复制异常:org.elasticsearch.transport.RemoteTransportException: Failed to deserialize exception
- Elasticsearch NoNodeAvailableException None of the configured nodes are available
- java.io.NotSerializableException: org.hibernate.util.MarkerObject解决办法
- org.apache.commons.beanutils.ConversionException: No value specified解决办法
- Struts报java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory的解决办法