I wanted to figure out how to create a multi-node ElasticSearch cluster on single machine. So i followed these instructions
 
 
- First i did download elasticsearch zip file.
 - Create 3 folders in like node1, node2 and node3
 - Unzip elasticsearch.zip in each one of these folders and name the folder node1,node2,node3
 - Then i opened the node1/config/elasticsearch.yml and i did change value of cluster.name to samarcluster and value of node.name to node1,node2 and node 3 as shown below.
 
Typical setup done with 3 nodes on a single machine
node1: 
 cluster.name: samarcluster
 node.name: "node1"
 node.master: true
 node.data: true
node2 : 
 cluster.name: samarcluster
 node.name: "node2"
 node.master: false
 node.data: true
node3 : 
 cluster.name: samarcluster
 node.name: "node3"
 node.master: false
 node.data: false
Next step was to install below Plugins
Marvel on each of the nodes by executing bin/plugin -i elasticsearch/marvel/latest
ElasticSearch-HQ on each of the nodes by executing bin/plugin -install royrusso/elasticsearch-HQ
Once all the 3 nodes are started, i could see them in marvel and elasticHQ as shown below.



