Hello,
i try to make a cluster with 2 nodes with 2 VM / CentOs 7
cluster.name: elk57
node.name: node-elk57-1
node.master: true
node.data: false
bootstrap.memory_lock: true
network.host: 0.0.0.0
transport.host: localhost
#http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.22.93.218","10.22.93.217"]
discovery.zen.minimum_master_nodes: 2
~
cluster.name: elk57
node.name: node-elk57-2
node.master: true
node.data: false
bootstrap.memory_lock: true
network.host: 0.0.0.0
transport.host: localhost
#http.port: 9200
discovery.zen.ping.unicast.hosts: ["10.22.93.217", "10.22.93.218"]
discovery.zen.minimum_master_nodes: 2
action.destructive_requires_name: true
[2017-11-10T16:55:06,257][WARN ][o.e.b.JNANatives ] Unable to lock JVM Memory: error=12, reason=Cannot allocate memory
[2017-11-10T16:55:06,260][WARN ][o.e.b.JNANatives ] This can result in part of the JVM being swapped out.
[2017-11-10T16:55:06,261][WARN ][o.e.b.JNANatives ] Increase RLIMIT_MEMLOCK, soft limit: 65536, hard limit: 65536
[2017-11-10T16:55:06,261][WARN ][o.e.b.JNANatives ] These can be adjusted by modifying /etc/security/limits.conf, for example:
# allow user 'elasticsearch' mlockall
elasticsearch soft memlock unlimited
elasticsearch hard memlock unlimited
[2017-11-10T16:55:06,261][WARN ][o.e.b.JNANatives ] If you are logged in interactively, you will have to re-login for the new limits to take effect.
[2017-11-10T16:55:06,392][INFO ][o.e.n.Node ] [node-elk57-2] initializing ...
[2017-11-10T16:55:06,508][INFO ][o.e.e.NodeEnvironment ] [node-elk57-2] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [5gb], net total_space [7.8gb], spins? [unknown], types [rootfs]
[2017-11-10T16:55:06,508][INFO ][o.e.e.NodeEnvironment ] [node-elk57-2] heap size [1.9gb], compressed ordinary object pointers [true]
[2017-11-10T16:55:06,510][INFO ][o.e.n.Node ] [node-elk57-2] node name [node-elk57-2], node ID [ZtcSNDOaQJqi0dhVSBS53w]
[2017-11-10T16:55:06,510][INFO ][o.e.n.Node ] [node-elk57-2] version[5.6.4], pid[30193], build[8bbedf5/2017-10-31T18:55:38.105Z], OS[Linux/3.10.0-693.2.2.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/1.8.0_151/25.151-b12]
[2017-11-10T16:55:06,511][INFO ][o.e.n.Node ] [node-elk57-2] JVM arguments [-Xms2g, -Xmx2g, -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/share/elasticsearch]
[2017-11-10T16:55:07,794][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [aggs-matrix-stats]
[2017-11-10T16:55:07,795][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [ingest-common]
[2017-11-10T16:55:07,795][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [lang-expression]
[2017-11-10T16:55:07,795][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [lang-groovy]
[2017-11-10T16:55:07,795][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [lang-mustache]
[2017-11-10T16:55:07,795][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [lang-painless]
[2017-11-10T16:55:07,795][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [parent-join]
[2017-11-10T16:55:07,795][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [percolator]
[2017-11-10T16:55:07,795][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [reindex]
[2017-11-10T16:55:07,796][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [transport-netty3]
[2017-11-10T16:55:07,796][INFO ][o.e.p.PluginsService ] [node-elk57-2] loaded module [transport-netty4]
[2017-11-10T16:55:07,796][INFO ][o.e.p.PluginsService ] [node-elk57-2] no plugins loaded
[2017-11-10T16:55:09,732][INFO ][o.e.d.DiscoveryModule ] [node-elk57-2] using discovery type [zen]
[2017-11-10T16:55:10,393][INFO ][o.e.n.Node ] [node-elk57-2] initialized
[2017-11-10T16:55:10,393][INFO ][o.e.n.Node ] [node-elk57-2] starting ...
[2017-11-10T16:55:10,587][INFO ][o.e.t.TransportService ] [node-elk57-2] publish_address {127.0.0.1:9300}, bound_addresses {127.0.0.1:9300}, {[::1]:9300}
[2017-11-10T16:55:10,603][WARN ][o.e.b.BootstrapChecks ] [node-elk57-2] memory locking requested for elasticsearch process but memory is not locked
[2017-11-10T16:55:13,642][WARN ][o.e.d.z.ZenDiscovery ] [node-elk57-2] not enough master nodes discovered during pinging (found [[Candidate{node={node-elk57-2}{ZtcSNDOaQJqi0dhVSBS53w}{u4482nx6RWqGf1LvoPfbaA}{localhost}{127.0.0.1:9300}, clusterStateVersion=-1}]], but needed [2]), pinging again
[2017-11-10T16:55:16,646][WARN ][o.e.d.z.ZenDiscovery ] [node-elk57-2] not enough master nodes discovered during pinging (found [[Candidate{node={node-elk57-2}{ZtcSNDOaQJqi0dhVSBS53w}{u4482nx6RWqGf1LvoPfbaA}{localhost}{127.0.0.1:9300}, clusterStateVersion=-1}]], but needed [2]), pinging again
[2017-11-10T16:55:40,628][WARN ][o.e.n.Node ] [node-elk57-2] timed out while waiting for initial discovery state - timeout: 30s
[2017-11-10T16:55:40,647][INFO ][o.e.h.n.Netty4HttpServerTransport] [node-elk57-2] publish_address {10.22.93.218:9200}, bound_addresses {[::]:9200}
[2017-11-10T16:55:40,647][INFO ][o.e.n.Node ] [node-elk57-2] started
can you help me please.
Thx
David