弹性搜索群集 - 没有已知的主节点,计划重试 [英] Elasticsearch Cluster - No known master node, scheduling a retry
问题描述
根据有限的文档,如何做到这一点第二个问题出现以下错误
[DEBUG] [action.admin.indices.get] [Match]主节点,安排重试
我无法确定两台服务器的最佳配置,这是我迄今为止所做的:
主节点配置:
cluster.name:elasticsearch
node.master:true
path.data:/ local00 / elasticsearch /
path.work:/ local00 / el_temp /
network.host: 0.0.0.0
http.port:9200
script.disable_dynamic:true
节点2
cluster.name:elasticsearch
node.master:false
node.data:true
index.number_of_shards:5
index.number_of_replicas:1
path.data:/ loca l00 / elasticsearch /
path.work:/ local00 / el_temp /
network.host:0.0.0.0
http.port:9200
script.disable_dynamic:true
我假设我在某处丢失了其他配置。任何帮助将不胜感激。
使用以下更改在这里回答如何设置ES群集?:
节点1:
cluster.name:mycluster
node.name:node1
node.master:true
node.data:true
discovery.zen.ping.multicast.enabled:false
discovery.zen.ping.unicast.hosts:[node1.example.com]
节点2: cluster.name:mycluster
node.name:node2
node.master:false
node.data:true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts:[node1.example.com]
I have a server running elasticsearch and kibana. I have added a second node to form a cluster but only want that second node to replicate data from the master node.
Based on limited documentation on how to do this, I am running into issue on second with following error
[DEBUG][action.admin.indices.get ] [Match] no known master node, scheduling a retry
I am unable to determine the best configuration for both servers to achieve this but this is what I have done so far:
Master Node Config:
cluster.name: elasticsearch
node.master: true
path.data: /local00/elasticsearch/
path.work: /local00/el_temp/
network.host: 0.0.0.0
http.port: 9200
script.disable_dynamic: true
Node 2
cluster.name: elasticsearch
node.master: false
node.data: true
index.number_of_shards: 5
index.number_of_replicas: 1
path.data: /local00/elasticsearch/
path.work: /local00/el_temp/
network.host: 0.0.0.0
http.port: 9200
script.disable_dynamic: true
I am assuming I am missing additional config somewhere. Any help will be much appreciated.
解决方案 Got it working with following changes answered here How to set up ES cluster?:
Node 1:
cluster.name: mycluster
node.name: "node1"
node.master: true
node.data: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["node1.example.com"]
Node 2:
cluster.name: mycluster
node.name: "node2"
node.master: false
node.data: true
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["node1.example.com"]
这篇关于弹性搜索群集 - 没有已知的主节点,计划重试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!