Elasticsearch集群两个基于ubuntu的系统

时间:2018-08-01 12:07:37

标签: elasticsearch elastic-stack elasticsearch-5

我正在尝试将两个系统作为弹性集群进行集群

我在Ubuntu上运行了两个系统,其中设置了弹性搜索。以下是配置文件,其中包含我已修改或未注释掉默认行的行。

配置file (system 1)

cluster.name: elastic-cluster-attempt
node.name: "es-node-1"
node.master: false
node.data: true

network.host: 111.111.11.111 
transport.host: 127.0.0.1
http.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300

discovery.zen.ping.unicast.hosts:["111.111.11.111:9300","222.222.22.22:9300"]

配置file (system 2)

cluster.name: elastic-cluster-attempt
node.name: "es-node-2"
node.master: true
node.data: true

network.host: 222.222.22.222 
transport.host: 127.0.0.1
http.host: 0.0.0.0
http.port: 9200
transport.tcp.port: 9300

discovery.zen.ping.unicast.hosts:["111.111.11.111:9300","222.222.22.22:9300"]

当我使用这些配置运行弹性搜索时 系统1elasticsearch无法启动并引发错误:

  

在ping期间发现的主节点不足(找到[[]],但需要[-1]),再次ping

系统2启动,但不ping其他系统

我想将这两个系统组合为一个集群,请让我知道错误和正确的方法。

0 个答案:

没有答案