Hello everyone!
I am using ES 5.6.2 and I created two nodes within a cluster.
I simply want to have one master node and one slave node.
Here are the configuration files for both of them:
  cluster.name: nomad-cluster
  node.name: nomad-node-fnico-test
  node.master: true
  node.data: true
  path.data: /var/data/elasticsearch
  path.logs: /var/log/elasticsearch
  network.host: 0.0.0.0
  network.bind_host: _global_
  http.port: 9200
#  transport.host: 130.183.198.7
#  transport.tcp.port: 9300-9400
  discovery.zen.ping.unicast.hosts: ["130.183.198.7:9200","130.183.198.71:9200"]
  discovery.zen.minimum_master_nodes: 1
and
 cluster.name: nomad-cluster
  node.name: nomad-node-fnico-test2
  node.master: false
  node.data: true
  path.data: /var/data/elasticsearch
  path.logs: /var/log/elasticsearch
# network.host: 130.183.198.7
# network.bind_ cluster.name: nomad-cluster
  node.name: nomad-node-fnico-test2
  node.master: false
  node.data: true
  path.data: /var/data/elasticsearch
  path.logs: /var/log/elasticsearch
# network.host: 130.183.198.7
# network.bind_host: 130.183.198.7
  network.host: 0.0.0.0
  network.bind_host: _global_
  http.port: 9200
#  transport.host: _global_
#  transport.tcp.port: 9300-9400
#  discovery.zen.ping.unicast.enabled: true
  discovery.zen.ping.unicast.hosts: ["130.183.198.7:9200","130.183.198.71:9200"]
  discovery.zen.minimum_master_nodes: 1
host: 130.183.198.7
  network.host: 0.0.0.0
  network.bind_host: _global_
  http.port: 9200
#  discovery.zen.ping.multicast.enabled: false  -- not in ES5 !
#  transport.host: _global_
#  transport.tcp.port: 9300-9400
#  discovery.zen.ping.unicast.enabled: true
  discovery.zen.ping.unicast.hosts: ["130.183.198.7:9200","130.183.198.71:9200"]
  discovery.zen.minimum_master_nodes: 1
The nodes are on two different machines connected with an ssh connection with forwarding on the port 9200.
ES on the master node works fine, but not on the slave node. This happens:
[2017-10-12T14:01:17,912][INFO ][o.e.n.Node               ] [nomad-node-fnico-test2] initializing ...
[2017-10-12T14:01:18,178][INFO ][o.e.e.NodeEnvironment    ] [nomad-node-fnico-test2] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [15.8gb], net total_space [19gb], spins? [unknown], types [rootfs]
[2017-10-12T14:01:18,179][INFO ][o.e.e.NodeEnvironment    ] [nomad-node-fnico-test2] heap size [193.3mb], compressed ordinary object pointers [true]
[2017-10-12T14:01:18,180][INFO ][o.e.n.Node               ] [nomad-node-fnico-test2] node name [nomad-node-fnico-test2], node ID [zbTiVNMyTXqUmNykROtk7Q]
[2017-10-12T14:01:18,180][INFO ][o.e.n.Node               ] [nomad-node-fnico-test2] version[5.6.2], pid[23128], build[57e20f3/2017-09-23T13:16:45.703Z], OS[Linux/3.10.0-327.10.1.el7.x86_64/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_141/25.141-b15]
[2017-10-12T14:01:18,181][INFO ][o.e.n.Node               ] [nomad-node-fnico-test2] JVM arguments [-Xms200m, -Xmx200m, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -Djdk.io.permissionsUseCanonicalPath=true, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Dlog4j.skipJansi=true, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/usr/local/elasticsearch-5.6.2]
[2017-10-12T14:01:20,568][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [aggs-matrix-stats]
[2017-10-12T14:01:20,568][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [ingest-common]
[2017-10-12T14:01:20,568][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [lang-expression]
[2017-10-12T14:01:20,569][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [lang-groovy]
[2017-10-12T14:01:20,569][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [lang-mustache]
[2017-10-12T14:01:20,569][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [lang-painless]
[2017-10-12T14:01:20,569][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [parent-join]
[2017-10-12T14:01:20,569][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [percolator]
[2017-10-12T14:01:20,569][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [reindex]
[2017-10-12T14:01:20,569][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [transport-netty3]
[2017-10-12T14:01:20,569][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] loaded module [transport-netty4]
[2017-10-12T14:01:20,570][INFO ][o.e.p.PluginsService     ] [nomad-node-fnico-test2] no plugins loaded
[2017-10-12T14:01:24,410][INFO ][o.e.d.DiscoveryModule    ] [nomad-node-fnico-test2] using discovery type [zen]
[2017-10-12T14:01:25,778][INFO ][o.e.n.Node               ] [nomad-node-fnico-test2] initialized
[2017-10-12T14:01:25,778][INFO ][o.e.n.Node               ] [nomad-node-fnico-test2] starting ...
[2017-10-12T14:01:26,073][INFO ][o.e.t.TransportService   ] [nomad-node-fnico-test2] publish_address {130.183.198.71:9300}, bound_addresses {130.183.198.71:9300}
[2017-10-12T14:01:26,098][INFO ][o.e.b.BootstrapChecks    ] [nomad-node-fnico-test2] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-10-12T14:01:29,266][WARN ][o.e.d.z.ZenDiscovery     ] [nomad-node-fnico-test2] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again
[2017-10-12T14:01:32,268][WARN ][o.e.d.z.ZenDiscovery     ] [nomad-node-fnico-test2] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again
[2017-10-12T14:01:35,270][WARN ][o.e.d.z.ZenDiscovery     ] [nomad-node-fnico-test2] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again
[2017-10-12T14:01:38,271][WARN ][o.e.d.z.ZenDiscovery     ] [nomad-node-fnico-test2] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again
[2017-10-12T14:01:41,273][WARN ][o.e.d.z.ZenDiscovery     ] [nomad-node-fnico-test2] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again
[2017-10-12T14:01:44,275][WARN ][o.e.d.z.ZenDiscovery     ] [nomad-node-fnico-test2] not enough master nodes discovered during pinging (found [[]], but needed [1]), pinging again
What could be the issue here?
Thanks!
