在使用TransportClient连接Elasticsearch时出现了NoNodeAvailableException:
None of the configured nodes are available: [{#transport#-1}
排查方法 :
- 确保ES 9300端口支持tcp/ip协议访问
- 确保集群名字,es 地址,index name, index aliases, index type 配置正确(code and elasticseach.yml)
- 确保ES 地址不受网络访问限制
- 确保ES index 存在
相关查询命令可参考:
https://blog.csdn.net/qq_35623773/article/details/83662928