elasticsearch返回“未分配”

时间:2015-06-29 14:20:48

标签: symfony elasticsearch cluster-computing unassigned-variable

当我在elasticsearch中索引任何文档时,我总是发现数据是未分配的。当我尝试搜索,排序,删除或更新数据时,它可以很好地工作。

elasticsearch data using head plugin

群集运行状况为黄色:

enter image description here

这是索引元数据:

{
"state": "open",
"settings": {
"index": {
"creation_date": "1435151717012",
"number_of_shards": "5",
"uuid": "ixYnG8_ESa-b7ZHWrnFqRw",
"version": {
"created": "1060099"
},
"number_of_replicas": "1"
}
},
"mappings": { "hello": { ....... }},
"aliases": [ ]
}

我不明白我做错了什么,所以数据是“未分配”。我该如何解决这个问题?

1 个答案:

答案 0 :(得分:0)

是否可以应用以下设置来启用分片分配:

curl -XPUT 'localhost:9200/{index}/_settings' -d '{"index.routing.allocation.disable_allocation": false}'