# ======================== Elasticsearch Configuration =========================
#cluster.name: my-application
node.name: node-1
node.master: true
node.data: true
network.host: 172.31.24.193
discovery.zen.ping.unicast.hosts:["172.31.24.193","172.31.25.87","172.31.23.237"]节点-2 elasticsearch.yml配置
# ======================== Elasticsearch Configuration =========================
#cluster.name: my-application
node.name: node-2
node.master: true
node.data: true
network.host: 172.31.25.87
discovery.zen.ping.unicast.hosts:["172.31.24.193","172.31.25.87","172.31.23.237"] 节点-3弹性搜索配置
# ======================== Elasticsearch Configuration =========================
#cluster.name: my-application
node.name: node-3
node.master: true
node.data: true
network.host: 172.31.23.237
discovery.zen.ping.unicast.hosts:["172.31.24.193","172.31.25.87","172.31.23.237"] 错误描述:我安装了一个ec2-discovery插件。我在弹性密钥库中传递AWS访问密钥和秘密密钥和端点。
我使用的是最新的弹性搜索6.2。我已经启动了亚马逊ec2实例上的所有节点。我有三个ec2实例。我在这三个节点上都得到了这样的错误
[node-2] not enough master nodes discovered during pinging (found [[Candidate{node={node-2}{TpI8T4GBShK8CN7c2ruAXw}{DAsuqCnISsuiw6BGvqrysA}{172.31.25.87}{172.31.25.87:9300}, clusterStateVersion=-1}]], but needed [2]), pinging again发布于 2018-03-21 09:01:29
首先,要使用EC2-发现,您需要在您的elasticsearch.yml:discovery.zen.hosts_provider: ec2中使用它并删除discovery.zen.ping.unicast.hosts。
请检查https://www.elastic.co/guide/en/elasticsearch/plugins/current/discovery-ec2-usage.html
EC2-发现的思想不是硬编码配置文件中的节点in,而是自动“发现”它们。
第二,您提供的错误表明,节点无法相互平分,请确保在您的安全组中设置了允许此操作的规则。在InBound选项卡中,添加一个新规则:
类型:所有TCP
来源:您的安全组id (sg-xxxxxx)
https://stackoverflow.com/questions/49253277
复制相似问题