【发布时间】:2017-04-29 12:00:59
【问题描述】:
我在 ubuntu 14.04 中安装了 Elasticsearch 5.1。我在 Elasticsearch 中执行了一些操作,如创建索引、删除索引等。然后我安装了 Kibana 5.1。现在我想使用邮递员(localhost:9200/my_index with PUT)在elasticsearch中创建新索引。但是我收到了这个错误。
{
"error": {
"root_cause": [
{
"type": "illegal_argument_exception",
"reason": "unknown setting [index.country] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
}
],
"type": "illegal_argument_exception",
"reason": "unknown setting [index.country] please check that any required plugins are installed, or check the breaking changes documentation for removed settings"
},
"status": 400
}
我记得我使用country 作为索引或类型。但是后来我清除了 elasticsearch 和 kibana(也删除了与这些相关的目录)。重新安装了两个。但仍然收到此错误。如果有人知道解决方案,将不胜感激。
这是您可能需要解决问题的一些查询的输出。
GET localhost:9200/_mapping
{ ".kibana": { “映射”:{ “服务器”: { “特性”: { “uuid”:{ “类型”:“关键字” } } }, “配置”:{ “特性”: { “buildNum”:{ “类型”:“关键字” } } } } } }
(GET) localhost:9200/_cat/indices?v
[{ “健康”:“黄色”, “状态”:“打开”, “索引”:“.kibana”, "uuid": "O_ORG0ONQNCEe8JU_C0SKQ", “pri”:“1”, “代表”:“1”, "docs.count": "1", “docs.deleted”:“0”, "store.size": "3.1kb", “pri.store.size”:“3.1kb”}]
(GET) 本地主机:9200/国家
{ “错误”:{ “根本原因”: [ { “类型”:“index_not_found_exception”, “原因”:“没有这样的索引”, "resource.type": "index_or_alias", "resource.id": "国家", "index_uuid": "na", “索引”:“国家” } ], “类型”:“index_not_found_exception”, “原因”:“没有这样的索引”, "resource.type": "index_or_alias", "resource.id": "国家", "index_uuid": "na", “索引”:“国家”},“状态”:404 }
【问题讨论】:
-
您是否正在发送带有 put 请求的 requestbody 以创建索引?
-
你的帖子怎么样,如果你能告诉我们?
标签: elasticsearch elasticsearch-plugin elasticsearch-5 elasticsearch-indices