EliasticSearchB报错:NoNodeAvailableException[None of the configured nodes are available

使用ES测试索引库创建时,发生color=#00ffffNoNodeAvailableException[None of the configured nodes are available: [{#transport#-1}{z3QuaX5LSqK3rLGnWY92RA}{127.0.0.1}{127.0.0.1:9300}]
]! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如何使用Markdown编辑器, 可以仔细阅读这篇文章,了解一下Markdown的基本语法知识。
EliasticSearchB报错:NoNodeAvailableException[None of the configured nodes are available

1、elasticsearch.yml 中的 cluster.name 与 程序的配置文件中保持一致。
使用notepad++修改时,建议直接取消cluster.name的注释,在后边加上名称,否则由于格式问题会引发错误。
EliasticSearchB报错:NoNodeAvailableException[None of the configured nodes are available

2、修改完后,访问127.0.0.1:9200 查看 是否生效。
EliasticSearchB报错:NoNodeAvailableException[None of the configured nodes are available
3、修改完后,无报错
EliasticSearchB报错:NoNodeAvailableException[None of the configured nodes are available