Here is log again
command
bin/elasticsearch -Epath.data=/usr/share/elasticsearch/data/node_2 -Epath.logs=/var/log/elasticsearch/node_2 -Enode.name=node_2 -Enode.data=true -Enode.master=false
Log
[2017-05-24T09:15:59,021][INFO ][o.e.n.Node ] [node_2] initializing ...
[2017-05-24T09:15:59,109][INFO ][o.e.e.NodeEnvironment ] [node_2] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [52.8gb], net total_space [59gb], spins? [unknown], types [rootfs]
[2017-05-24T09:15:59,109][INFO ][o.e.e.NodeEnvironment ] [node_2] heap size [247.5mb], compressed ordinary object pointers [true]
[2017-05-24T09:15:59,110][INFO ][o.e.n.Node ] [node_2] node name [node_2], node ID [H9ROPBHaT5GvR_DKj42W6w]
[2017-05-24T09:15:59,111][INFO ][o.e.n.Node ] [node_2] version[5.4.0], pid[20903], build[780f8c4/2017-04-28T17:43:27.229Z], OS[Linux/3.10.0-514.16.1.el7.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_131/25.131-b11]
[2017-05-24T09:16:00,205][INFO ][o.e.p.PluginsService ] [node_2] loaded module [aggs-matrix-stats]
[2017-05-24T09:16:00,205][INFO ][o.e.p.PluginsService ] [node_2] loaded module [ingest-common]
[2017-05-24T09:16:00,205][INFO ][o.e.p.PluginsService ] [node_2] loaded module [lang-expression]
[2017-05-24T09:16:00,205][INFO ][o.e.p.PluginsService ] [node_2] loaded module [lang-groovy]
[2017-05-24T09:16:00,205][INFO ][o.e.p.PluginsService ] [node_2] loaded module [lang-mustache]
[2017-05-24T09:16:00,206][INFO ][o.e.p.PluginsService ] [node_2] loaded module [lang-painless]
[2017-05-24T09:16:00,206][INFO ][o.e.p.PluginsService ] [node_2] loaded module [percolator]
[2017-05-24T09:16:00,206][INFO ][o.e.p.PluginsService ] [node_2] loaded module [reindex]
[2017-05-24T09:16:00,206][INFO ][o.e.p.PluginsService ] [node_2] loaded module [transport-netty3]
[2017-05-24T09:16:00,206][INFO ][o.e.p.PluginsService ] [node_2] loaded module [transport-netty4]
[2017-05-24T09:16:00,207][INFO ][o.e.p.PluginsService ] [node_2] no plugins loaded
[2017-05-24T09:16:01,923][INFO ][o.e.d.DiscoveryModule ] [node_2] using discovery type [zen]
[2017-05-24T09:16:02,568][INFO ][o.e.n.Node ] [node_2] initialized
[2017-05-24T09:16:02,568][INFO ][o.e.n.Node ] [node_2] starting ...
[2017-05-24T09:16:02,738][INFO ][o.e.t.TransportService ] [node_2] publish_address {127.0.0.1:9303}, bound_addresses {[::1]:9303}, {127.0.0.1:9303}
[2017-05-24T09:16:05,919][INFO ][o.e.c.s.ClusterService ] [node_2] detected_master {node_1}{ttz3YT1cSRmD-NLw4vO26g}{eHO5rYNGTQaqJYwxg6ZCsw}{127.0.0.1}{127.0.0.1:9300}, added {{node_1}{ttz3YT1cSRmD-NLw4vO26g}{eHO5rYNGTQaqJYwxg6ZCsw}{127.0.0.1}{127.0.0.1:9300},}, reason: zen-disco-receive(from master [master {node_1}{ttz3YT1cSRmD-NLw4vO26g}{eHO5rYNGTQaqJYwxg6ZCsw}{127.0.0.1}{127.0.0.1:9300} committed version [11]])
[2017-05-24T09:16:05,975][INFO ][o.e.h.n.Netty4HttpServerTransport] [node_2] publish_address {127.0.0.1:9203}, bound_addresses {[::1]:9203}, {127.0.0.1:9203}
[2017-05-24T09:16:05,978][INFO ][o.e.n.Node ] [node_2] started
output of curl -XGET 'http://localhost:9200/_cluster/state?pretty'
{
"cluster_name" : "cs",
"version" : 11,
"state_uuid" : "1src4cYpRnuX7x6DSANP6w",
"master_node" : "ttz3YT1cSRmD-NLw4vO26g",
"blocks" : { },
"nodes" : {
"ttz3YT1cSRmD-NLw4vO26g" : {
"name" : "node_1",
"ephemeral_id" : "eHO5rYNGTQaqJYwxg6ZCsw",
"transport_address" : "127.0.0.1:9300",
"attributes" : { }
},
"H9ROPBHaT5GvR_DKj42W6w" : {
"name" : "node_2",
"ephemeral_id" : "vpmX6_u1QLqTrqzR0fW7aA",
"transport_address" : "127.0.0.1:9303",
"attributes" : { }
}
},
"metadata" : {
"cluster_uuid" : "7JtoIEjOTSW9BdPj4sRlSQ",
"templates" : { },
"indices" : { },
"index-graveyard" : {
"tombstones" : [ ]
}
},
"routing_table" : {
"indices" : { }
},
"routing_nodes" : {
"unassigned" : [ ],
"nodes" : {
"H9ROPBHaT5GvR_DKj42W6w" : [ ]
}
}
}
till here everything seems fine
but now i close the the terminal or stop the command via ctrl+z
then node deleted
output
curl -XGET 'http://localhost:9200/_cluster/state?pretty'
{
"cluster_name" : "cs",
"version" : 12,
"state_uuid" : "og9UQzt0QRS-Yx_jZAHVoQ",
"master_node" : "ttz3YT1cSRmD-NLw4vO26g",
"blocks" : { },
"nodes" : {
"ttz3YT1cSRmD-NLw4vO26g" : {
"name" : "node_1",
"ephemeral_id" : "eHO5rYNGTQaqJYwxg6ZCsw",
"transport_address" : "127.0.0.1:9300",
"attributes" : { }
}
},
"metadata" : {
"cluster_uuid" : "7JtoIEjOTSW9BdPj4sRlSQ",
"templates" : { },
"indices" : { },
"index-graveyard" : {
"tombstones" : [ ]
}
},
"routing_table" : {
"indices" : { }
},
"routing_nodes" : {
"unassigned" : [ ],
"nodes" : { }
}
}