Elasticsearch集群

  

1,两台机分别安装好Elasticsearch


其中为192.168.1.110,设为大师节点,Elasticsearch。yml配置如下

cluster.name:我的应用程序   node.name:节点- 111      network.host: 192.168.1.110   http.port: 9200      http.cors.enabled:真实   http.cors.allow-origin:,“*”;      node.master:真实   node.data:真实   discovery.zen.ping.unicast.hosts: [“192.168.1.110"]

另一台机:的ip位192.168.1.108,elasticsearch。yml配置如下:

cluster.name:我的应用程序   node.name:节点- 102      network.host: 192.168.1.108   http.port: 9200      http.cors.enabled:真实   http.cors.allow-origin:,“*”;      node.master:假   node.data:真实   discovery.zen.ping.unicast.hosts: [“192.168.1.110"]


分别启动两台机

访问:


主:

 Elasticsearch集群”> <br/> </p> <p>从的:</p> <p> <img src=[节点2],failed 用send  join  request 用master [{节点1}{WbcP0pC_T32jWpYvu5is1A} {2 _lcvhx1qeabzyz7xqekmg} {10.10.11.200} {10.10.11.200:9300}],, reason  [RemoteTransportException[[节点1][10.10.11.200:9300][内部:发现/禅/加入]];,嵌套:,IllegalArgumentException[停下来# 39;t  add  node {节点2}{WbcP0pC_T32jWpYvu5is1A} {p-HCgFLvSFa

解决:

原因是:是因为复制的Elasticsearch文件夹下包含了数据文件中示例一的节点数据,

Elasticsearch集群