By following this answer, I set up my /etc/elasticsearch/elasticsearch.yml
as follows (almost equivalent to the linked answer):
Node 1 (192.168.136.6):
cluster.name: mycluster
node.name: "node1"
node.master: true
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.136.6"]
Node 2 (192.168.152.244):
cluster.name: mycluster
node.name: "node2"
node.master: false
node.data: true
discovery.zen.ping.unicast.hosts: ["192.168.136.6"]
and everything else is set to default, i.e. they're commented out.
By curl http://localhost:9200/_cluster/health?pretty=true
on Node 1, I get:
...
"number_of_nodes" : 1,
"number_of_data_nodes" : 1,
...
so apparently Node 1&2 are not clustered. What am I missing?
Note: I'm using ES 2.3.4 on CentOS 6.5. At least ping from Node 2 to 1 and 1 to 2 works. I turned off iptables temporarily (because I want to make sure the firewall setting isn't causing the problem). I tried two VPS services and it still doesn't work (and so I removed "on Linode" from the title).