Reindexing from ES to opensearch

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
ES: 7.9.1, opensearch: 2.11.0

Describe the issue:
I am trying to reindex from ES 7.9.1(deployed in aws ec2) to opensearch 2.11.0 which is a managed service by aws.

When i am passing remote host with http it give below error.

{
“error”: {
“root_cause”: [
{
“type”: “illegal_argument_exception”,
“reason”: “remote should be https endpoint”
}
],
“type”: “illegal_argument_exception”,
“reason”: “remote should be https endpoint”
},
“status”: 400
}

when i give https it will give below error.

{
“error”: {
“root_cause”: [
{
“type”: “illegal_argument_exception”,
“reason”: “Invalid remote host:[x.x.x.x]”
}
],
“type”: “illegal_argument_exception”,
“reason”: “Invalid remote host:[x.x.x.x]”
},
“status”: 400
}

Configuration:

Relevant Logs or Screenshots:

@vayila Please have a look at this index compatibility from OpenSearch documentation.

I assume you’re trying to reindex using the reindex API.

If the Reindex API doesn’t work for you, then an external tool should do. Here’s how you can use Logstash for that (you’d use the OpenSearch output instead of the Elasticsearch one): Recipe: Reindexing Elasticsearch Documents with Logstash - Sematext