gpt4 book ai didi

elasticsearch - 我怎么能建立一个ES集群?

转载 作者:行者123 更新时间:2023-11-29 02:52:14 26 4
gpt4 key购买 nike

我有一个主节点ip是192.168.1.101和一个非主节点ip是192.168.1.106。两者使用相同版本的ElasticSearch-1.2.0。

但是当我启动主节点和非主节点后,得到如下信息:

[2014-06-04 02:38:49,350][INFO ][discovery.zen ] [node2] failed to send join request to master [[node1][TxZ5wuhnT1awPC1gEjYPdw][flyers-MacBook-Air.local][inet[/192.168.1.101:9300]]{master=true}], reason [org.elasticsearch.ElasticsearchTimeoutException: Timeout waiting for task.]

主节点的配置:

cluster.name: mycluster
node.name: "node1"
node.master: true
node.data: true
index.number_of_shards: 5
index.number_of_replicas: 1
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["192.168.1.101"]

非主节点的配置:

cluster.name: mycluster
node.name: "node2"
node.master: false
node.data: true
index.number_of_shards: 5
index.number_of_replicas: 1
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["192.168.1.101"]

我不知道为什么会出现这种异常。请给我一些提示。提前致谢。

最佳答案

我将network.bind_hostnetwork.publish_hostnetwork.host设置为节点持有的IP后,成功了。很奇怪。

关于elasticsearch - 我怎么能建立一个ES集群?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24022630/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com