Elasticsearch Cluster with 1 master node and 2 data nodes

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

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

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