Hello All,
I am a newbie to ElasticSearch Cluster Setup and need help regarding installation. Below is my config for all the 3 nodes. Using ElasticSearch-6.3.2 on Amazon Linux.
Master Config
cluster.name: prod
node.name: master101
node.master: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
discovery.zen.hosts_provider: ec2
discovery.ec2.tag.Segment: elastic
network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
xpack.security.enabled: false
action.destructive_requires_name: true
Slave-1 Config
cluster.name: prod
node.name: slv1
node.master: true
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
discovery.zen.hosts_provider: ec2
discovery.ec2.tag.Segment: elastic
network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
xpack.security.enabled: false
action.destructive_requires_name: true
Slave-2 Config
cluster.name: prod
node.master: true
node.name: slv2
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
bootstrap.memory_lock: true
discovery.zen.hosts_provider: ec2
discovery.ec2.tag.Segment: elastic
network.host: 0.0.0.0
transport.host: localhost
transport.tcp.port: 9300
xpack.security.enabled: false
action.destructive_requires_name: true
All of my 3 instances are on a private subnet and Security groups are configured properly and I'm able to ping 3 of my instances vice versa
Getting below error while starting the ElasticSearch service:
Error on Master Node:
[WARN ][o.e.d.z.ZenDiscovery] [master101] not enough master nodes discovered during pinging (found [[Candidate{node={master101}{ssssssssssssss}{ccccccccccccc}{localhost}{127.0.0.1:9300}{ml.machine_memory=16337809408, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}, clusterStateVersion=-1}]], but needed [2]), pinging again
Error on slv node:
[2018-08-16T08:35:24,619][WARN ][o.e.d.z.ZenDiscovery ] [slv1] not enough master nodes discovered during pinging (found [[Candidate{node={slv1}{issssssss76DQ}{ccccccccccccwg}{localhost}{127.0.0.1:9300}{ml.machine_memory=16337809408, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}, clusterStateVersion=-1}]], but needed [2]), pinging again