我有一台运行elasticsearch 和kibana 的服务器。我添加了第二个节点来形成集群,但只希望第二个节点从主节点复制数据。
根据有关如何执行此操作的有限文档,我在第二个问题上遇到了以下错误
[DEBUG][action.admin.indices.get ] [Match] no known master node, scheduling a retry
我无法确定两台服务器实现此目的的最佳配置,但这就是我迄今为止所做的:
主节点配置:
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
我假设我在某处缺少额外的配置。任何帮助都感激不尽。
让它与这里回答的以下更改一起工作如何搭建ES集群? https://stackoverflow.com/questions/16821101/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"]
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)