(转)Elasticsearch NoNodeAvailableException None of the configured nodes are available
2017-09-25 10:37
489 查看
问题背景:
将es部署到内网中两台服务器,其Ip地址分别为:192.111.222.5,192.111.222.1(部署方式完全一样,是将192.111.222.1服务器上es整个部署包,拷贝到了192.111.222.5,包括索引文件)。
在开发本机(IP:192.111.222.36)通过idea编译直接运行代码,从而连接对应es的服务器,连接192.111.222.1就没有任何问题,但连接192.111.222.5,就会报出异常,具体异常信息如下:
解决办法:将192.111.222.5服务器上配置文件elasticsearch.yml,具体位置如下
修改配置文件中的network.host项,将network.host: 0.0.0.0修改为本机ipnetwork.host: 192.111.222.5,搞定。
具体如下:
但有个问题就是192.111.222.1配置文件中的network.host项一直为network.host: 0.0.0.0,但可以正常访问啊,为什么192.111.222.5就需要修改为本机ip了?暂时没有搞清楚,希望有知道的朋友,留个言,帮我解一下惑。
转自:https://www.2cto.com/kf/201611/571168.html
将es部署到内网中两台服务器,其Ip地址分别为:192.111.222.5,192.111.222.1(部署方式完全一样,是将192.111.222.1服务器上es整个部署包,拷贝到了192.111.222.5,包括索引文件)。
在开发本机(IP:192.111.222.36)通过idea编译直接运行代码,从而连接对应es的服务器,连接192.111.222.1就没有任何问题,但连接192.111.222.5,就会报出异常,具体异常信息如下:
修改配置文件中的network.host项,将network.host: 0.0.0.0修改为本机ipnetwork.host: 192.111.222.5,搞定。
具体如下:
但有个问题就是192.111.222.1配置文件中的network.host项一直为network.host: 0.0.0.0,但可以正常访问啊,为什么192.111.222.5就需要修改为本机ip了?暂时没有搞清楚,希望有知道的朋友,留个言,帮我解一下惑。
转自:https://www.2cto.com/kf/201611/571168.html
相关文章推荐
- 记录一次Elasticsearch线上部署后出现:org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []的问题解决
- Elasticsearch NoNodeAvailableException None of the configured nodes are available
- org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are availa
- NoNodeAvailableException[None of the configured nodes are available
- Exception in thread "main" NoNodeAvailableException[None of the configured nodes are available: [{#t
- ElasticSearch: NoNodeAvailableException[None of the configured nodes are available...]
- elasticsearch报错解决办法:NoNodeAvailableException[None of the configured nodes are available
- ES使用org.elasticsearch.client.transport.NoNodeAvailableException: No node available 错误解决方法
- None of the configured nodes are available #transport#-1
- elasticsearch报错:None of the configured nodes are available: []
- elasticsearch报错:None of the configured nodes are available: []
- org.elasticsearch.client.transport.NoNodeAvailableException
- spark连接es的问题java.lang.ClassNotFoundException:org.elasticsearch.client.transport.NoNodeAvailableExcep
- None of the configured nodes are available:[{#transport#-1}解决方案
- org.elasticsearch.client.transport.NoNodeAvailableException: No node available
- org.elasticsearch.client.transport.NoNodeAvailableException。。解决办法
- ElasticSearch NoNodeAvailableException
- 记一次生产环境elasticsearch排查问题的排查None of the configured nodes are available
- Elasticsearch NoNodeAvailableException[None of the configured nodes are available
- elasticsearch scripts of type [inline], operation [update] and lang [groovy] are disabled