Versions
Current version OpenSearch 1.3
Describe the issue:
Unable to upgrade from OpenSearch 1.3 to 2.3
Relevant Logs or Screenshots:
This is the error I am seeing
The following indices are not compatible with the target Elasticsearch version OS_2.3 - smartmeters. Please refer to our documentation Upgrading Amazon OpenSearch Service domains - Amazon OpenSearch Service for tips to address this issue
Upon checking these are the following requirements
-
The
type
parameter was removed from all OpenSearch API endpoints in version 2.0. For more information -
If your domain contains any indexes (hot, UltraWarm, or cold) that were originally created in Elasticsearch 6.8, those indexes are not compatible with OpenSearch 2.3.
Before you upgrade to version 2.3, you must reindex the incompatible indexes. For incompatible UltraWarm or cold indexes, migrate them to hot storage, reindex the data, and then migrate them back to warm or cold storage. Alternately, you can delete the indexes if you no longer need them.
We are not using type
parameter, but our index was created in Elasticsearch 6.x, what is the correct way to reindex?
Is it possible to reindex smartmeters without creating any new indexes?
Should I create new index like ?
PUT smartmeters_new
{
"mappings":{
"properties" : {
"city" : {
"type" : "keyword"
},
"state" : {
"type" : "keyword"
},
"zipcode" : {
"type" : "integer"
},
}
},
"settings":{
"index" : {
"number_of_shards" : "5",
"number_of_replicas" : "0"
}
}
}
and then run
POST _reindex
{
"source":{
"index":"smartmeters"
},
"dest":{
"index":"smartmeters_new"
}
}
I tried this but I am getting timeouts so wanted to know if this is the correct approach.
Size of current index CleanShot 2023-11-15 at 18.08.23
Apologies in advance I was not able to find a solution, not sure if someone has posted similar query, apologies if this is a silly question.