I upgraded elasticsearch from 5.6 to 6.3 today and 4 shards stayed in unassigned state (it's replicas that is).
Looking at the reasons, it looks like it bugs him that I have different settings for _all
fields in different document types (this index was created with ES 5.6).
I tried setting number_of_replicas
to 0 and changing mapping and set _all
fields to disable, but I keep getting the same error:
{
"error": {
"root_cause": [
{
"type": "remote_transport_exception",
"reason": "[es4][x.x.x.x:9300][indices:admin/mapping/put]"
}
],
"type": "illegal_argument_exception",
"reason": "Mapper for [_all] conflicts with existing mapping in other types:\n[mapper [_all] has different [norms] values, cannot change from disable to enabled]"
},
"status": 400
}
I also closed one of the indexes and when I try to open it, I get this:
{
"error": {
"root_cause": [
{
"type": "exception",
"reason": "Failed to verify index [logs-httpd-2018.07-1/dajLHrjeR--7xuOzt0ow0g]"
}
],
"type": "exception",
"reason": "Failed to verify index [logs-httpd-2018.07-1/dajLHrjeR--7xuOzt0ow0g]",
"caused_by": {
"type": "illegal_argument_exception",
"reason": "Mapper for [_all] conflicts with existing mapping in other types:\n[mapper [_all] has different [norms] values, cannot change from disable to enabled]"
}
},
"status": 500
}
Indice mapping: https://pastebin.com/td7JBGy2
I googled around and didn't find a solution for my problem.
What are my options here?
Is it possible to save the index?
Should I reindex?