Creating elasticsearch cluster on the same machine

I have a use case where I need to create a single elasticsearch cluster of multiple nodes on the same machine. I have a heavy hardware and this is for a dev environment only. I am using ES 6.2.2 and having hard time creating the cluster. I have made below changes to my elasticsearch.yml config file however both the nodes are started as individual master nodes for exactly the same cluster. Can somebody please help.

Below is the configuration:

$ pwd
$ sed 's/^#.*//;/^$/d' config/elasticsearch.yml cluster1
http.port: 9200
transport.tcp.port: 9300 [""]

$ pwd
$ sed 's/^#.*//;/^$/d' config/elasticsearch.yml cluster1
http.port: 9202
transport.tcp.port: 9302 [""]

Sorry there was a typo in for the second node. After fixing it worked. Updated the original post with fixed version. :grinning:

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