Elasticsearch-7.6.2 新建索引报错,索引用的是此前 6.5.4 的,用来存放 zabbix 历史数据

curl -H “Content-Type:application/json” -XPUT http://10.200.167.101:9200/uint -d ‘

{
“settings” : {
“index” : {
“number_of_replicas” : 1,
“number_of_shards” : 5
}
},
“mappings” : {
“values” : {
“properties” : {
“itemid” : {
“type” : “long”
},
“clock” : {
“format” : “epoch_second”,
“type” : “date”
},
“value” : {
“type” : “long”
}
}
}
}
}’
{“error”:{“root_cause”:[{“type”:”mapper_parsing_exception”,”reason”:”Root mapping definition has unsupported parameters: [values : {properties={itemid={type=long}, clock={format=epoch_second, type=date}, value={type=long}}}]”}],”type”:”mapper_parsing_exception”,”reason”:”Failed to parse mapping [_doc]: Root mapping definition has unsupported parameters: [values : {properties={itemid={type=long}, clock={format=epoch_second, type=date}, value={type=long}}}]”,”caused_by”:{“type”:”mapper_parsing_exception”,”reason”:”Root mapping definition has unsupported parameters: [values : {properties={itemid={type=long}, clock={format=epoch_second, type=date}, value={type=long}}}]”}},”status”:400}

讨论数量: 1
CrazyZard

你看下mapping 属性

4年前 评论

@CrazyZard 还请详细描述,目前实在困惑,还在官网看资料中。

3年前 评论

Elasticsearch 可以使用上一个主版本的索引

7.x 可以使用 6.x/ 7.x 不支持使用 5.x 5.x 可以使用 2.x

文档中写着可以沿用,所以挺奇怪的,一些弃用的值也换过了

3年前 评论

讨论应以学习和精进为目的。请勿发布不友善或者负能量的内容,与人为善,比聪明更重要!