I am trying to restore a single index from S3 snapshot and I am getting the following error
curl -XPOST "http://localhost:9200/_snapshot/s3_rep/snapshot_events_2015_07_2015_11_01/_restore " -d '{
"indices": "events-2015.07.01",
"ignore_unavailable": "true",
"include_global_state": false
}'
{"error":"ElasticsearchIllegalArgumentException[failed to parse repository source [{\n "indices": "events-2015.07.01",\n "ignore_unavailable": "true",\n "include_global_state": false\n}]]; nested: ElasticsearchIllegalArgument
The path does exist, I am able to list the index successfully using the
curl -s -XGET "localhost:9200/_snapshot/s3_rep/snapshot_events_2015_07_2015_11_01/_status?pretty" | grep events-2015.07.01
"events-2015.07.01" : {
warkolm
(Mark Walkom)
November 3, 2015, 6:55am
2
Is there more to the error?
Is there anything in the ES logs?
There is no error in the ES logs, I have ran this command in the past when my ES was 1.4.5
Nothing else has changed except my ES is now 1.7.1
Is there a change on the syntax to restore and index from S3 snapshot?
curl -XPOST "http://localhost:9200/_snapshot/s3_repository/snapshot_events_2015_07_2015_11_01/_restore " -d '{
"indices": "events-2015.07.01",
"ignore_unavailable": "true",
"include_global_state": false
}'
{"error":"ElasticsearchIllegalArgumentException[failed to parse repository source [{\n "indices": "events-2015.07.01",\n "ignore_unavailable": "true",\n "include_global_state": false\n}]]; nested: ElasticsearchIllegalArgumentException[Unknown parameter ignore_unavailable]; ","status":400} tmp]$