I get back errors like this:
StatusCodeError: InvalidIndexNameException[[_snapshot] Invalid index name
[snapshot], must not start with ''] {message:
"InvalidIndexNameException[[_snapshot] Invalid index name [snapshot], must
not start with '']", body: Object, status: 400, stack: (...)}
The problem was partly because I was doing it wrong. You need to provide
additional parameters in a body element. And there is a bug in the snapshot
creation, needs to be a PUT instead of a POST.
See issue:
Op vrijdag 12 december 2014 01:12:28 UTC+1 schreef Jettro Coenradie:
Hi,
I am capable of creating a snapshot using sense or curl using the command:
PUT /_snapshot/gridshore-repo/gridshore_4
{
"indices": "gridshore*"
}
The problem is when I start doing something like this using the javascript
library in angularjs.
I get back errors like this:
StatusCodeError: InvalidIndexNameException[[_snapshot] Invalid index name
[snapshot], must not start with ''] {message:
"InvalidIndexNameException[[_snapshot] Invalid index name [snapshot], must
not start with '']", body: Object, status: 400, stack: (...)}
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.