Reindex from Remote 1.7 to 5.5 Transport Exception

I have to transfer one index from an ElasticSearch 1.7 cluster to ElasticSearch 5.x .I found the Reindex from Remote API , whitelisted that in the elasticsearch.yml file .

curl -XPOST 'host:port/_reindex?pretty' -H 'Content-Type: application/json' -d'
{
"source": {
"remote": {
"host": "http://host:port"
},
"index": "index-name"
},
"dest": {
"index": "index-name"
}
}
'

I get this error:

       "error": {
    "root_cause": [
    {
    "type": "remote_transport_exception",
    "reason": "[host][host:port][indices:admin/create]"
    }
    ],
    "type": "string_index_out_of_bounds_exception",
    "reason": "String index out of range: 0"
    },
    "status": 500
    }

Any help would be appreciated

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.