elasticsearch2.4.0三节点集群部署

1、不指定http.port和transport.tcp.port
elasticsearch2.4.0在部署集群的时候,修改elasticsearch.yml配置文件,不指定http.port和transport.tcp.port的时候,默认分别采用9200和9300,三个节点都采用默认配置即可。

cluster.name: es_cluster
node.name: es_node-1

network.host: 192.168.248.51
network.publish_host: 192.168.248.51

discovery.zen.ping.unicast.hosts: ["192.168.248.52","192.168.248.53"]
discovery.zen.minimum_master_nodes: 1

2、指定http.port和transport.tcp.port
指定http.port和transport.tcp.port的话,需要在discovery.zen.ping.unicast.hosts中指定端口号

cluster.name: es_cluster
node.name: es_node-1

network.host: 192.168.248.51
network.publish_host: 192.168.248.51

http.port: 9201
transport.tcp.port: 9301

discovery.zen.ping.unicast.hosts: ["192.168.248.52:9302","192.168.248.53:9303"]
discovery.zen.minimum_master_nodes: 1

你可能感兴趣的:(ES)