原文:Elasticsearch使用java读取数据报错NoNodeAvailableException: None of the configured nodes are available: [127.0.0.1:9300]

对于这个问题,大部分人出现在这个地方: 问题在于前面初始化settings时给cluster设置了个新的名字,如:Settings settings ImmutableSettings.settingsBuilder .put cluster.name , tonsonmiao .build 因为如果设置clustername后,容器会在添加transportaddress时,从集群名为tonso ...

2017-05-16 21:49 0 13086 推荐指数:

查看详情

NoNodeAvailableException[None of the configured nodes are available

可能的原因: 1、项目引用的ES版本和ES服务的版本不一样; 2、端口不正确,tcp访问端口是9300; 3、cluster.name不正确,可以通过访问http://localhost:9200/查看ES服务下的cluster.name; 4、ES服务没启动; 简单demo ...

Sat Jun 01 01:05:00 CST 2019 0 5800
 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM