无法创建弹性搜索索引(logstash-2015.05.18) [英] Can not create Elasticsearch Index (logstash-2015.05.18)
本文介绍了无法创建弹性搜索索引(logstash-2015.05.18)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用Elasticsearch 2.4
I'm using Elasticsearch 2.4
按照Elasticsearch Kibana官方文档这里,当我创建索引 logstash-2015.05.18
时,错误下面排放。
Following the instruction from the Elasticsearch Kibana official documentation here, when I create the index logstash-2015.05.18
, the error below were emitted.
# curl -XPUT http://10.15.0.70:9200/logstash-2015.05.18 -d '
{
"mappings": {
"log": {
"properties": {
"geo": {
"properties": {
"coordinates": {
"type": "geo_point"
}
}
}
}
}
}
}
';
{"error":{"root_cause":[{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: ["store" : true]"}],"type":"mapper_parsing_exception","reason":"Failed to parse mapping ["date"]: Root mapping definition has unsupported parameters: ["store" : true]","caused_by":{"type":"mapper_parsing_exception","reason":"Root mapping definition has unsupported parameters: ["store" : true]"}},"status":400}
使用Kibana创建索引的感觉
插件也给我同样的错误
Using the sense
plugin of Kibana to create the index also gives me the same error
PUT logstash-2015.05.18
{
"mappings": {
"log": {
"properties": {
"geo": {
"properties": {
"coordinates": {
"type": "geo_point"
}
}
}
}
}
}
}
{
"error": {
"root_cause": [
{
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: ["store" : true]"
}
],
"type": "mapper_parsing_exception",
"reason": "Failed to parse mapping ["date"]: Root mapping definition has unsupported parameters: ["store" : true]",
"caused_by": {
"type": "mapper_parsing_exception",
"reason": "Root mapping definition has unsupported parameters: ["store" : true]"
}
},
"status": 400
}
有人可以告诉创建索引时我做错了吗?
Can someone tell me did I do something wrong when creating the index?
推荐答案
有同样的麻烦。
删除弹性搜索数据(/ usr / local / var / elasticsearch,如果您使用Homebrew安装它)将其修复为。
Removing elasticsearch data("/usr/local/var/elasticsearch", if you install it with Homebrew) fixed it for me.
这篇关于无法创建弹性搜索索引(logstash-2015.05.18)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文