Cluster 2 nodes no communication

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

I suspect this may be preventing them from connecting. Change to 0.0.0.0 or the host IP.

What is the point in having a two node cluster that is not able to store any data?

1 Like

no data for the moment maybe after find the issue.

I try changing the transport.host and now i have that :

[2017-11-10T17:17:07,176][INFO ][o.e.n.Node               ] [node-elk57-2] starting ...
[2017-11-10T17:17:07,501][INFO ][o.e.t.TransportService   ] [node-elk57-2] publish_address {10.22.93.218:9300}, bound_addresses {10.22.93.218:9300}
[2017-11-10T17:17:07,529][INFO ][o.e.b.BootstrapChecks    ] [node-elk57-2] bound or publishing to a non-loopback or non-link-local address, enforcing bootstrap checks
[2017-11-10T17:17:07,533][ERROR][o.e.b.Bootstrap          ] [node-elk57-2] node validation exception
[1] bootstrap checks failed
[1]: memory locking requested for elasticsearch process but memory is not locked
[2017-11-10T17:17:07,537][INFO ][o.e.n.Node               ] [node-elk57-2] stopping ...
[2017-11-10T17:17:08,069][INFO ][o.e.n.Node               ] [node-elk57-2] stopped
[2017-11-10T17:17:08,070][INFO ][o.e.n.Node               ] [node-elk57-2] closing ...
[2017-11-10T17:17:08,118][INFO ][o.e.n.Node               ] [node-elk57-2] closed

i have 4 cpu and 8go ram

You will need to go through the bootstrap check described in the documentation. These are also described in this blog post.

ok thx i correct problem for the memory lock

thx to you !

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.