gpt4 book ai didi

elasticsearch - master_not_discovered_exception ElasticSearch 单节点

转载 作者:行者123 更新时间:2023-12-02 22:10:24 31 4
gpt4 key购买 nike

我正在尝试在单个主机上设置 elasticsearch。这是我的配置的样子:

elasticsearch.yml

node.name: ${HOSTNAME}

network.host: _site_, _local_
http.port: 9200
transport.tcp.port: 9300
cluster.name: "test_cluster"
node.local: true

kibana.yml
server.host: 0.0.0.0
elasticsearch.url: http://localhost:9200

在以下命令中:
curl -XGET 'localhost:9200/_cluster/health?pretty'

我收到以下消息:
{
"error" : {
"root_cause" : [
{
"type" : "master_not_discovered_exception",
"reason" : null
}
],
"type" : "master_not_discovered_exception",
"reason" : null
},
"status" : 503
}

在日志文件中,我看到以下消息:
not enough master nodes discovered during pinging (found [[]], but needed [-1]), pinging again

有人可以在这里指出我正确的方向吗?

最佳答案

我花了几天(叹气)基本上这个。我试图将我的单节点集群从 6.x 升级到 7.x,我一直在“master_not_discovered_exception”的山上死去。

最终为我解决的是检查全新安装的 7.x。

对于我的单节点集群,我的/etc/elasticsearch/elasticsearch.yml 需要以下行:

discovery.type: single-node

我希望这能让其他人免于像我一样度过几天。在我的辩护中,我对 es 很陌生。

关于elasticsearch - master_not_discovered_exception ElasticSearch 单节点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45257934/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com