I tried with:
network.host: _ ec2:privateIp _
could not do:
ubuntu@es-data2:~$ curl localhost:9200/_nodes/process?pretty
curl: (7) Failed to connect to localhost port 9200: Connection refused
stacktrace:
[2015-11-24 08:03:18,819][INFO ][node ] [es2-data.localdomain] version[2.0.0], pid[6576], build[de54438/2015-10-22T08:09:48Z]
[2015-11-24 08:03:18,820][INFO ][node ] [es2-data.localdomain] initializing ...
[2015-11-24 08:03:19,087][INFO ][plugins ] [es2-data.localdomain] loaded [cloud-aws], sites [hq]
[2015-11-24 08:03:19,122][INFO ][env ] [es2-data.localdomain] using [1] data paths, mounts [[/ (/dev/xvda1)]], net usable_space [4.2gb], net total_space [7.7gb], spins? [no], types [ext4]
[2015-11-24 08:03:21,722][INFO ][node ] [es2-data.localdomain] initialized
[2015-11-24 08:03:21,722][INFO ][node ] [es2-data.localdomain] starting ...
[2015-11-24 08:03:21,821][INFO ][transport ] [es2-data.localdomain] publish_address {10.111.112.87:9300}, bound_addresses {10.111.112.87:9300}
[2015-11-24 08:03:21,832][INFO ][discovery ] [es2-data.localdomain] ABCDEFGHtest/nIfqDAOYQ8WprHxFGeIxRQ
[2015-11-24 08:03:22,665][WARN ][transport.netty ] [es2-data.localdomain] exception caught on transport layer [[id: 0x192d25cb, /10.111.112.87:58884 => /10.111.112.73:9300]], closing connection
java.lang.NullPointerException
at org.elasticsearch.transport.netty.MessageChannelHandler.handleException(MessageChannelHandler.java:206)
at org.elasticsearch.transport.netty.MessageChannelHandler.handlerResponseError(MessageChannelHandler.java:201)
..
at java.lang.Thread.run(Thread.java:745)
[2015-11-24 08:03:22,666][WARN ][transport.netty ] [es2-data.localdomain] exception caught on transport layer [[id: 0xe7228172, /10.111.112.87:37220 => /10.111.112.226:9300]], closing connection
java.lang.NullPointerException
....
[2015-11-24 08:03:22,665][WARN ][discovery.zen.ping.unicast] [es2-data.localdomain] failed to send ping to [{#cloud-i-11e13da8-0}{10.111.112.121}{10.111.112.121:9300}]
RemoteTransportException[[es1-data.localdomain][10.111.112.121:9300][internal:discovery/zen/unicast]]; nested: IllegalStateException[received ping request while not started];
Caused by: java.lang.IllegalStateException: received ping request while not started
[2015-11-24 08:03:24,324][WARN ][discovery.zen.ping.unicast] [es2-data.localdomain] failed to send ping to [{#cloud-i-11e13da8-0}{10.111.112.121}{10.111.112.121:9300}]
RemoteTransportException[[es1-data.localdomain][10.111.112.121:9300][internal:discovery/zen/unicast]]; nested: IllegalStateException[received ping request while not started];
Caused by: java.lang.IllegalStateException: received ping request while not started
at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing.handlePingRequest(UnicastZenPing.java:478)
at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing.access$2400(UnicastZenPing.java:64)
at org.elasticsearch.discovery.zen.ping.unicast.UnicastZenPing$UnicastPingRequestHandler.messageReceived(UnicastZenPing.java:503)
...
[2015-11-24 08:03:27,517][INFO ][cluster.service ] [es2-data.localdomain] new_master {es2-data.localdomain}{nIfqDAOYQ8WprHxFGeIxRQ}{10.111.112.87}{10.111.112.87:9300}{max_local_storage_nodes=1, master=true}, reason: zen-disco-join(elected_as_master, [0] joins received)
[2015-11-24 08:03:27,544][INFO ][http ] [es2-data.localdomain] publish_address {10.111.112.87:9200}, bound_addresses {10.111.112.87:9200}
[2015-11-24 08:03:27,544][INFO ][node ] [es2-data.localdomain] started
[2015-11-24 08:03:27,552][INFO ][gateway ] [es2-data.localdomain] recovered [0] indices into cluster_state
[2015-11-24 08:03:58,215][INFO ][cluster.service ] [es2-data.localdomain] added {{es1-data.localdomain}{K70lDLMYSe2Ok15X_m9BUQ}{10.111.112.121}{10.111.112.121:9300}{max_local_storage_nodes=1, master=true},}, reason: zen-disco-join(join from node[{es1-data.localdomain}{K70lDLMYSe2Ok15X_m9BUQ}{10.111.112.121}{10.111.112.121:9300}{max_local_storage_nodes=1, master=true}])