NoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{HBmUtjMOQP2pgLFFwqa_Og}{172.16.0.163}{172.16.0.163:9300}] ]

1、找到elasticsearch的安装目录,在config目录找到elasticsearch.yml,查看cluster.name的赋值

2、在SpringBoot的yml文件中,不仅要配置cluster-nodes,而且还需要配置cluster-name,而且cluster-name必须与elasticsearch.yml中一致

posted @ 2019-02-21 10:42  sum墨  阅读(1699)  评论(0编辑  收藏  举报