ElasticSearch NoNodeAvailableException[None of the configured nodes are available]

springboot集成Elasticsearch啓動錯誤提示:

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

出現以上錯誤有可能是: ElasticSearch的安裝根目錄下找到config目錄下的elasticsearch.yml文件,找到

1.  #cluster.name: my-application
2.  #network.host: 192.168.0.1  ip可以修改爲0.0.0.0
3.  如果配置了賬號密碼,檢查一下賬號和密碼是否配置正確
4. 查看springboot和Elasticsearch版本是否匹配

重啓再試試。。。

具體代碼: https://gitee.com/pianjiao006/boot-spring/tree/master/boot-elasticsearch

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章