我在 Amazon EC2 中尝试了具有 3 个节点的弹性搜索集群配置。但我在通话后收到 UnavailableShardsException$type->addDocument($doc);
以下是 custer 中 3 个节点中每个节点上的配置。请帮忙 !
Node1
=====
cluster.name: MyCluster
node.name: node1
node.master: true
node.data: true
# index.number_of_shards: 5 //Not confugured this, to use the default value 5
index.number_of_replicas: 2
transport.tcp.port: 9300
http.port: 9200
Node2
=====
cluster.name: MyCluster
node.name: node2
node.master: false
node.data: true
# index.number_of_shards: 5 //Not confugured this, to use the default value 5
index.number_of_replicas: 2
transport.tcp.port: 9301
http.port: 9201
Node3
=====
cluster.name: MyCluster
node.name: node3
node.master: false
node.data: true
# index.number_of_shards: 5 //Not confugured this, to use the default value 5
index.number_of_replicas: 2
transport.tcp.port: 9302
http.port: 9202