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中一致

原文地址:https://www.cnblogs.com/wlovet/p/10410920.html