# Elasticsearch Cluster with 1 master node and 2 data nodes

**URL:** <https://discuss.elastic.co/t/elasticsearch-cluster-with-1-master-node-and-2-data-nodes/162349>\
**Category:** Elasticsearch\
**Created:** [December 28, 2018, 1:54pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-with-1-master-node-and-2-data-nodes/162349 "2018-12-28T13:54:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ajinkya\_A](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ajinkya_a/32/39239_2.png) [@Ajinkya\_A](https://discuss.elastic.co/u/Ajinkya_A)\
**Post date:** [December 28, 2018, 1:54pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-with-1-master-node-and-2-data-nodes/162349/1 "2018-12-28T13:54:16Z")

</div>

I am trying to crate a Elasticsearch Cluster with 1 Maste and 2 Data Node

Below are the yml files for the same

#### Master yml

```
cluster.name: testing

discovery.zen.ping.unicast.hosts:
- 192.168.1.107
- 192.168.1.125
- 192.168.1.130

http.compression: true
http.port: 9200
network.host:
- _site_
- _local_

node.data: false
node.master: true
node.ingest: false

transport.tcp.compress: true
transport.tcp.port: 9300

node.name: 192.168.1.107

path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch

```

#### Data-Node-1 yml

```
cluster.name: testing

discovery.zen.ping.unicast.hosts:
- 192.168.1.107
- 192.168.1.125
- 192.168.1.130

http.compression: true
http.port: 9200
network.host:
- _site_
- _local_

node.data: true
node.master: false
node.ingest: false

transport.tcp.compress: true
transport.tcp.port: 9300

node.name: 192.168.1.125

path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch

```

#### Data-Node-2 yml

```
cluster.name: testing

discovery.zen.ping.unicast.hosts:
- 192.168.1.107
- 192.168.1.125
- 192.168.1.130

http.compression: true
http.port: 9200
network.host:
- _site_
- _local_

node.data: true
node.master: false
node.ingest: false

transport.tcp.compress: true
transport.tcp.port: 9300

node.name: 192.168.1.130

path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch

```

### Master Logs

```
[2018-12-28T19:09:56,840][INFO][o.e.n.Node] [192.168.1.107] initializing ...
[2018-12-28T19:09:56,987][INFO][o.e.e.NodeEnvironment] [192.168.1.107] using [1] data paths, mounts [[/ (/dev/sda1)]], net usable_space [367.9gb], net total_space [469.2gb], types [ext4]
[2018-12-28T19:09:56,988][INFO][o.e.e.NodeEnvironment] [192.168.1.107] heap size 
[3.9gb], compressed ordinary object pointers [true]
[2018-12-28T19:09:56,999][INFO][o.e.n.Node] [192.168.1.107] node name 
[192.168.1.107], node ID [Ad_x8FWjQ82Bagb8kzX-lQ]
[2018-12-28T19:09:56,999][INFO][o.e.n.Node] [192.168.1.107] version[6.2.3], pid[20305], build[c59ff00/2018-03-13T10:06:29.741383Z], OS[Linux/4.15.0-43-generic/amd64], JVM[Oracle Corporation/Java HotSpot(TM) 64-Bit Server VM/1.8.0_191/25.191-b12]
[2018-12-28T19:09:56,999][INFO][o.e.n.Node] [192.168.1.107] JVM arguments [-Xms4g, -Xmx4g, -XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/tmp/elasticsearch.KZwrpKHy, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/var/lib/elasticsearch, -XX:+PrintGCDetails, -XX:+PrintGCDateStamps, -XX:+PrintTenuringDistribution, -XX:+PrintGCApplicationStoppedTime, -Xloggc:/var/log/elasticsearch/gc.log, -XX:+UseGCLogFileRotation, -XX:NumberOfGCLogFiles=32, -XX:GCLogFileSize=64m, -Des.path.home=/usr/share/elasticsearch, -Des.path.conf=/etc/elasticsearch]
[2018-12-28T19:09:57,871][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [aggs-matrix-stats]
[2018-12-28T19:09:57,871][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [analysis-common]
[2018-12-28T19:09:57,872][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [ingest-common]
[2018-12-28T19:09:57,872][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [lang-expression]
[2018-12-28T19:09:57,872][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [lang-mustache]
[2018-12-28T19:09:57,872][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [lang-painless]
[2018-12-28T19:09:57,872][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [mapper-extras]
[2018-12-28T19:09:57,872][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [parent-join]
[2018-12-28T19:09:57,872][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [percolator]
[2018-12-28T19:09:57,873][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [rank-eval]
[2018-12-28T19:09:57,873][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [reindex]
[2018-12-28T19:09:57,873][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [repository-url]
[2018-12-28T19:09:57,873][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [transport-netty4]
[2018-12-28T19:09:57,873][INFO][o.e.p.PluginsService] [192.168.1.107] loaded module [tribe]
[2018-12-28T19:09:57,874][INFO][o.e.p.PluginsService] [192.168.1.107] no plugins loaded
[2018-12-28T19:10:01,541][INFO][o.e.d.DiscoveryModule] [192.168.1.107] using discovery type [zen]
[2018-12-28T19:10:02,236][INFO][o.e.n.Node] [192.168.1.107] initialized
[2018-12-28T19:10:02,236][INFO][o.e.n.Node] [192.168.1.107] starting ...
[2018-12-28T19:10:02,515][INFO][o.e.t.TransportService] [192.168.1.107] publish_address {192.168.1.107:9300}, bound_addresses {[::1]:9300}, {127.0.0.1:9300}, {192.168.1.107:9300}
[2018-12-28T19:10:02,560][INFO][o.e.b.BootstrapChecks] [192.168.1.107] bound or publishing to a non-loopback address, enforcing bootstrap checks
[2018-12-28T19:10:02,563][ERROR][o.e.b.Bootstrap] [192.168.1.107] node validation exception
[1] bootstrap checks failed
[1]: granting the all permission effectively disables security
[2018-12-28T19:10:02,569][INFO][o.e.n.Node] [192.168.1.107] stopping ...
[2018-12-28T19:10:02,641][INFO][o.e.n.Node] [192.168.1.107] stopped
[2018-12-28T19:10:02,641][INFO][o.e.n.Node] [192.168.1.107] closing ...
[2018-12-28T19:10:02,656][INFO][o.e.n.Node] [192.168.1.107] closed

```

I am getting following errors

```
bound or publishing to a non-loopback address, enforcing bootstrap checks
bootstrap checks failed
node validation exception

```

Am I missing Some Things

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 28, 2018, 2:22pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-with-1-master-node-and-2-data-nodes/162349/2 "2018-12-28T14:22:56Z")

</div>

Please read [https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/bootstrap-checks.html)

---

<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:** [January 25, 2019, 2:22pm UTC](https://discuss.elastic.co/t/elasticsearch-cluster-with-1-master-node-and-2-data-nodes/162349/3 "2019-01-25T14:22:57Z")

</div>

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