# Cluster 2 nodes no communication

**URL:** <https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211>\
**Category:** Elasticsearch\
**Created:** [November 10, 2017, 3:56pm UTC](https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211 "2017-11-10T15:56:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dpachot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpachot/32/109307_2.png) [@dpachot](https://discuss.elastic.co/u/dpachot)\
**Post date:** [November 10, 2017, 3:56pm UTC](https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211/1 "2017-11-10T15:56:47Z")

</div>

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](http://cluster.name): elk57  
[node.name](http://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

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 10, 2017, 4:12pm UTC](https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211/2 "2017-11-10T16:12:34Z")

</div>

> [@dpachot](#):
>
> transport.host: localhost

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

> [@dpachot](#):
>
> node.data: false

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

---

<div class="post-metadata">

**Author:** ![dpachot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpachot/32/109307_2.png) [@dpachot](https://discuss.elastic.co/u/dpachot)\
**Post date:** [November 10, 2017, 4:28pm UTC](https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211/3 "2017-11-10T16:28:28Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Christian\_Dahlqvist](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/christian_dahlqvist/32/4617_2.png) [@Christian\_Dahlqvist](https://discuss.elastic.co/u/Christian_Dahlqvist)\
**Post date:** [November 10, 2017, 4:36pm UTC](https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211/4 "2017-11-10T16:36:49Z")

</div>

You will need to go through [the bootstrap check described in the documentation](https://www.elastic.co/guide/en/elasticsearch/reference/5.6/bootstrap-checks.html). These are also described in [this blog post](https://www.elastic.co/blog/bootstrap_checks_annoying_instead_of_devastating).

---

<div class="post-metadata">

**Author:** ![dpachot](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dpachot/32/109307_2.png) [@dpachot](https://discuss.elastic.co/u/dpachot)\
**Post date:** [November 10, 2017, 4:43pm UTC](https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211/5 "2017-11-10T16:43:54Z")

</div>

ok thx i correct problem for the memory lock

thx to you !

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 8, 2017, 4:44pm UTC](https://discuss.elastic.co/t/cluster-2-nodes-no-communication/107211/6 "2017-12-08T16:44:20Z")

</div>

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