Set up 2 node cluster with 2 different machine

I want to setup 2 node elastic cluster (1 master & 1 data ).
but unable to connect the data node.
plz suggest any yml setting.

I would highly suggest a 3 Node cluster were all nodes have all roles.

Node 1, Master Data:

cluster.name: ClusterName
node.name: NodeName
network.host: IP of this Node
http.host: 0.0.0.0
discovery.seed_hosts: ["IP_Node_1", " IP_Node_2"]
cluster.initial_master_nodes: ["Name_Node_1", " Name_Node_2"]

node.master: true
node.voting_only: false 
node.data: true 
node.ingest: true 
node.ml: false 
node.transform: false 
node.remote_cluster_client: false 

Node 2, Data:

cluster.name: ClusterName
node.name: NodeName
network.host: IP of this Node
http.host: 0.0.0.0
discovery.seed_hosts: ["IP_Node_1", " IP_Node_2"]
cluster.initial_master_nodes: ["Name_Node_1", " Name_Node_2"]

node.master: false 
node.voting_only: false 
node.data: true 
node.ingest: true
node.ml: false 
node.transform: false 
node.remote_cluster_client: false 

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.