not enough master nodes discovered during pinging
Elasticsearch | 作者 fire_boom | 发布于2019年09月09日 | 阅读数:4153
linux:centos7
jdk:1.8
三台虚拟机的地址配置:["192.168.130.134", "192.168.130.135", "192.168.130.136"]
elasticsearch:6.6
虚拟机es配置清单
cluster.name: my-application
node.name: node-1
node.attr.rack: r1
path.data: /opt/module/elasticsearch-6.6.0/data
path.logs: /opt/module/elasticsearch-6.6.0/logs
bootstrap.memory_lock: false
network.host: 192.168.130.134
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.130.134", "192.168.130.135", "192.168.130.136"]
discovery.zen.minimum_master_nodes: 2
gateway.recover_after_nodes: 3
action.destructive_requires_name: true
node.master: true
node.data: true
因为把内存关闭了bootstrap.memory_lock: false,所以出现这个问题,
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
所以设置了临时的变量,在三台虚拟机上
sysctl -w vm.max_map_count=262144
但是又出现了这个问题
not enough master nodes discovered during pinging (found [[Candidate{node={node-1}{Uzt0zUI3T_uFShm8jLaU5Q}{UutlZV27TSGug3_j1utbIw}{192.168.130.134}{192.168.130.134:9300}{ml.machine_memory=1907937280, rack=r1, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}, clusterStateVersion=-1}]], but needed [2]), pinging again
这个问题目前没有找到合适的解决办法,我的虚拟机的防火墙是处于关闭状态,三台虚拟机之间能相互通信
jdk:1.8
三台虚拟机的地址配置:["192.168.130.134", "192.168.130.135", "192.168.130.136"]
elasticsearch:6.6
虚拟机es配置清单
cluster.name: my-application
node.name: node-1
node.attr.rack: r1
path.data: /opt/module/elasticsearch-6.6.0/data
path.logs: /opt/module/elasticsearch-6.6.0/logs
bootstrap.memory_lock: false
network.host: 192.168.130.134
http.port: 9200
discovery.zen.ping.unicast.hosts: ["192.168.130.134", "192.168.130.135", "192.168.130.136"]
discovery.zen.minimum_master_nodes: 2
gateway.recover_after_nodes: 3
action.destructive_requires_name: true
node.master: true
node.data: true
因为把内存关闭了bootstrap.memory_lock: false,所以出现这个问题,
max virtual memory areas vm.max_map_count [65530] is too low, increase to at least [262144]
所以设置了临时的变量,在三台虚拟机上
sysctl -w vm.max_map_count=262144
但是又出现了这个问题
not enough master nodes discovered during pinging (found [[Candidate{node={node-1}{Uzt0zUI3T_uFShm8jLaU5Q}{UutlZV27TSGug3_j1utbIw}{192.168.130.134}{192.168.130.134:9300}{ml.machine_memory=1907937280, rack=r1, xpack.installed=true, ml.max_open_jobs=20, ml.enabled=true}, clusterStateVersion=-1}]], but needed [2]), pinging again
这个问题目前没有找到合适的解决办法,我的虚拟机的防火墙是处于关闭状态,三台虚拟机之间能相互通信
0 个回复