second Node : node_2 via command
bin/elasticsearch -Epath.data=/usr/share/elasticsearch/data/node_2 -Epath.logs=/var/log/elasticsearch/node_2 -Enode.name=node_2
Log of second Node
[2017-05-22T07:28:24,745][INFO ][o.e.n.Node ] [node_2] initializing ...
[2017-05-22T07:28:24,854][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-22T07:28:24,854][INFO ][o.e.e.NodeEnvironment ] [node_2] heap size [247.5mb], compressed ordinary object pointers [true]
[2017-05-22T07:28:24,856][INFO ][o.e.n.Node ] [node_2] node name [node_2], node ID [Yl38JzyUT_S83xbv2rdK8Q]
[2017-05-22T07:28:24,857][INFO ][o.e.n.Node ] [node_2] version[5.4.0], pid[10215], 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-22T07:28:25,992][INFO ][o.e.p.PluginsService ] [node_2] loaded module [aggs-matrix-stats]
[2017-05-22T07:28:25,992][INFO ][o.e.p.PluginsService ] [node_2] loaded module [ingest-common]
[2017-05-22T07:28:25,992][INFO ][o.e.p.PluginsService ] [node_2] loaded module [lang-expression]
[2017-05-22T07:28:25,992][INFO ][o.e.p.PluginsService ] [node_2] loaded module [lang-groovy]
[2017-05-22T07:28:25,992][INFO ][o.e.p.PluginsService ] [node_2] loaded module [lang-mustache]
[2017-05-22T07:28:25,992][INFO ][o.e.p.PluginsService ] [node_2] loaded module [lang-painless]
[2017-05-22T07:28:25,992][INFO ][o.e.p.PluginsService ] [node_2] loaded module [percolator]
[2017-05-22T07:28:25,993][INFO ][o.e.p.PluginsService ] [node_2] loaded module [reindex]
[2017-05-22T07:28:25,993][INFO ][o.e.p.PluginsService ] [node_2] loaded module [transport-netty3]
[2017-05-22T07:28:25,993][INFO ][o.e.p.PluginsService ] [node_2] loaded module [transport-netty4]
[2017-05-22T07:28:25,993][INFO ][o.e.p.PluginsService ] [node_2] no plugins loaded
[2017-05-22T07:28:27,934][INFO ][o.e.d.DiscoveryModule ] [node_2] using discovery type [zen]
[2017-05-22T07:28:28,564][INFO ][o.e.n.Node ] [node_2] initialized
[2017-05-22T07:28:28,564][INFO ][o.e.n.Node ] [node_2] starting ...
[2017-05-22T07:28:28,764][INFO ][o.e.t.TransportService ] [node_2] publish_address {127.0.0.1:9301}, bound_addresses {[::1]:9301}, {127.0.0.1:9301}
[2017-05-22T07:28:32,026][INFO ][o.e.c.s.ClusterService ] [node_2] detected_master {node_1}{44DUR4IFSQStThQWZoGpzg}{05XVwjEDRzumU88ojR-weQ}{127.0.0.1}{127.0.0.1:9300}, added {{node_1}{44DUR4IFSQStThQWZoGpzg}{05XVwjEDRzumU88ojR-weQ}{127.0.0.1}{127.0.0.1:9300},}, reason: zen-disco-receive(from master [master {node_1}{44DUR4IFSQStThQWZoGpzg}{05XVwjEDRzumU88ojR-weQ}{127.0.0.1}{127.0.0.1:9300} committed version [9]])
[2017-05-22T07:28:32,141][INFO ][o.e.h.n.Netty4HttpServerTransport] [node_2] publish_address {127.0.0.1:9201}, bound_addresses {[::1]:9201}, {127.0.0.1:9201}
[2017-05-22T07:28:32,146][INFO ][o.e.n.Node ] [node_2] started
And output of
curl -XGET 'http://localhost:9200/_cluster/state?pretty'
{
"cluster_name" : "cs",
"version" : 11,
"state_uuid" : "IWtBtfC9Rf2pFfktRhYBuA",
"master_node" : "44DUR4IFSQStThQWZoGpzg",
"blocks" : { },
"nodes" : {
"Wmh4Qg6YStGeQwiihc7Wvw" : {
"name" : "node_3",
"ephemeral_id" : "QCbe0cxbQNWXu6cdnpM_Zw",
"transport_address" : "127.0.0.1:9302",
"attributes" : { }
},
"44DUR4IFSQStThQWZoGpzg" : {
"name" : "node_1",
"ephemeral_id" : "05XVwjEDRzumU88ojR-weQ",
"transport_address" : "127.0.0.1:9300",
"attributes" : { }
}
},
"metadata" : {
"cluster_uuid" : "VrqDSExLRM2ErjLzoYLovg",
"templates" : { },
"indices" : { },
"index-graveyard" : {
"tombstones" : [ ]
}
},
"routing_table" : {
"indices" : { }
},
"routing_nodes" : {
"unassigned" : [ ],
"nodes" : {
"Wmh4Qg6YStGeQwiihc7Wvw" : [ ],
"44DUR4IFSQStThQWZoGpzg" : [ ]
}
}
}