1. 程式人生 > 其它 >es - ex - the default discovery settings are unsuitable for production use

es - ex - the default discovery settings are unsuitable for production use

技術標籤:stack - eses

世界上並沒有完美的程式,但是我們並不因此而沮喪,因為寫程式就是一個不斷追求完美的過程。

異常 :

ERROR: [1] bootstrap checks failed
[1]: the default discovery settings are unsuitable for production use; at least one of [discovery.seed_hosts, discovery.seed_providers, cluster.initial_master_nodes] must be configured
ERROR: Elasticsearch did not exit normally - check the logs at /home/es/es7.10.1/logs/standalone.log

產生原因 : 單節點啟動,修改了node.name以後,沒有同步加入到cluster.initial_master_nodes
解決方式 : 在cluster.initial_master_nodes中加入新修改的節點名稱
如 :
node.name: node
cluster.initial_master_nodes: [“node”]