我想在Windows中使用以下配置形成两个节点的集群,但我无法实现它。 这是我的弹性yml配置文件
node-1 yml conf details:
cluster.name: wincluster
node.name: node-1
network.host: 10.25.214.208
http.port: 9200
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["10.25.214.208", "10.25.214.205:9200"]
discovery.zen.minimum_master_nodes: 1
node-2 yml conf details:
cluster.name: wincluster
node.name: node-2
network.host: 10.25.214.205
http.port: 9200
node.master: false
node.data: true
discovery.zen.ping.unicast.hosts: ["10.25.214.208:9200", "10.25.214.205"]
discovery.zen.minimum_master_nodes: 1
答案 0 :(得分:0)
使用此配置
node-1 yml conf details:
cluster.name: wincluster
node.name: node-1
network.host: 10.25.214.208
http.port: 9200
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["10.25.214.208:9300"]
discovery.zen.minimum_master_nodes: 1
node-2 yml conf details:
cluster.name: wincluster
node.name: node-2
network.host: 10.25.214.205
http.port: 9200
node.master: false
node.data: true
discovery.zen.ping.unicast.hosts: ["10.25.214.208:9300"]
discovery.zen.minimum_master_nodes: 1