项目场景:
在华为大数据集群 从c80升级至651版本后,执行Elasticsearch命令修改配置失败
es版本由6.1.3升级为6.7.1
问题描述:
执行配置修改命令:
curl -XPUT “http://127.0.0.1:24100/*/_settings?pretty&master_timeout=120s” -H ‘Content-Type: application/json’ -d’{ “index.unassigned.node_left.delayed_timeout”: “10m”}’
恢复集群配置失败,报错:
{
"error" : {
"root_cause" : [
{
"type" : "mapper_parsing_exception",
"reason" : "analyzer [smartcn] not found for field [xm]"
}
],
"type" : "mapper_parsing_exception",
"reason" : "Failed to parse mapping [corp_employee]: analyzer [smartcn] not found for field [xm]",
"caused_by" : {
"type" : "mapper_parsing_exception",
"reason" : "analyzer [smartcn] not found for field [xm]"
}
},
"status" : 400
}
原因分析:
因老版本集群安装了smartcn 分词器,升级后需安装对应版本分词器
解决方案:
安装对应smartcn分词器,重启ES集群生效