Issue creating S3 repository on ElasticSearch 1.3


(Dylan Lingelbach) #1

Hi,

We are trying to migrate our data running on ES cluster running version
1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is
snapshotted to S3. I would like to restore that snapshot to our cluster
running 1.3.2. I am unable to create the S3 repository however on my
cluster running 1.3.2.

I have installed version 2.3.0 of the aws-cloud plugin.

Here is the command I am running:

curl 'localhost:9200/_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": {
"type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } }
}'
Here is the response I get:

{"error":"ActionRequestValidationException[Validation Failed: 1: type is
missing;]","status":500}
Any tips or suggestions would be appreciated.

Thanks,

Dylan

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #2

Do you try to create a repo?
If so, you need to use PUT method. Something like:

$ curl -XPUT 'http://localhost:9200/_snapshot/my_s3_repository' -d '{ "type": "s3", "settings": { "bucket": "my_bucket_name", "region": "us-west" } }'

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 sept. 2014 à 17:58, Dylan Lingelbach dylan@markitx.com a écrit :

Hi,

We are trying to migrate our data running on ES cluster running version 1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is snapshotted to S3. I would like to restore that snapshot to our cluster running 1.3.2. I am unable to create the S3 repository however on my cluster running 1.3.2.

I have installed version 2.3.0 of the aws-cloud plugin.

Here is the command I am running:
curl 'localhost:9200/_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": { "type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } } }'

Here is the response I get:
{"error":"ActionRequestValidationException[Validation Failed: 1: type is missing;]","status":500}

Any tips or suggestions would be appreciated.

Thanks,

Dylan

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/A0B4A076-824A-480D-8D46-A41EB8121BFD%40pilato.fr.
For more options, visit https://groups.google.com/d/optout.


(Dylan Lingelbach) #3

Thanks David. I typed the command I was running to try to create the
repository incorrectly. I am running
curl -XPUT 'localhost:9200/_snapshot/products-v0.2.1' -d '{
"products-v0.2.1": { "type": "s3", "settings": { "region": "us-east",
"bucket": "my-bucket" } } }'

So I am using the PUT method. When I do so I get the error I mentioned
above.

On Friday, September 5, 2014 1:46:28 AM UTC-5, David Pilato wrote:

Do you try to create a repo?
If so, you need to use PUT method. Something like:

$ curl -XPUT 'http://localhost:9200/_snapshot/my_s3_repository' -d '{ "type": "s3", "settings": { "bucket": "my_bucket_name", "region": "us-west" }}'

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 sept. 2014 à 17:58, Dylan Lingelbach <dy...@markitx.com <javascript:>>
a écrit :

Hi,

We are trying to migrate our data running on ES cluster running version
1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is
snapshotted to S3. I would like to restore that snapshot to our cluster
running 1.3.2. I am unable to create the S3 repository however on my
cluster running 1.3.2.

I have installed version 2.3.0 of the aws-cloud plugin.

Here is the command I am running:

curl 'localhost:9200/_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": {
"type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } }
}'
Here is the response I get:

{"error":"ActionRequestValidationException[Validation Failed: 1: type is
missing;]","status":500}
Any tips or suggestions would be appreciated.

Thanks,

Dylan

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(David Pilato) #4

Got it…

You must not repeat the repo name in the JSON doc. It should be:

{
"type":"s3",
"settings":{
"region":"us-east",
"bucket":"my-bucket"
}
}

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet | @elasticsearchfr

Le 5 septembre 2014 à 14:12:51, Dylan Lingelbach (dylan@markitx.com) a écrit:

Thanks David. I typed the command I was running to try to create the repository incorrectly. I am running
curl -XPUT 'localhost:9200/_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": { "type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } } }'

So I am using the PUT method. When I do so I get the error I mentioned above.

On Friday, September 5, 2014 1:46:28 AM UTC-5, David Pilato wrote:
Do you try to create a repo?
If so, you need to use PUT method. Something like:

$ curl -XPUT 'http://localhost:9200/_snapshot/my_s3_repository' -d '{ "type": "s3", "settings": { "bucket": "my_bucket_name", "region": "us-west" } }'

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 sept. 2014 à 17:58, Dylan Lingelbach dy...@markitx.com a écrit :

Hi,

We are trying to migrate our data running on ES cluster running version 1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is snapshotted to S3. I would like to restore that snapshot to our cluster running 1.3.2. I am unable to create the S3 repository however on my cluster running 1.3.2.

I have installed version 2.3.0 of the aws-cloud plugin.

Here is the command I am running:
curl 'localhost:9200/_snapshot/products-v0.2.1' -d '{ "products-v0.2.1": { "type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" } } }'

Here is the response I get:
{"error":"ActionRequestValidationException[Validation Failed: 1: type is missing;]","status":500}

Any tips or suggestions would be appreciated.

Thanks,

Dylan

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/etPan.5409d39a.7c3dbd3d.ec11%40MacBook-Air-de-David.local.
For more options, visit https://groups.google.com/d/optout.


(Dylan Lingelbach) #5

Ah, that makes total sense. Thanks David!

On Fri, Sep 5, 2014 at 10:15 AM, David Pilato david@pilato.fr wrote:

Got it…

You must not repeat the repo name in the JSON doc. It should be:

{
"type":"s3",
"settings":{
"region":"us-east",
"bucket":"my-bucket"
}
}

--
David Pilato | Technical Advocate | Elasticsearch.com
@dadoonet https://twitter.com/dadoonet | @elasticsearchfr
https://twitter.com/elasticsearchfr

Le 5 septembre 2014 à 14:12:51, Dylan Lingelbach (dylan@markitx.com) a
écrit:

Thanks David. I typed the command I was running to try to create the
repository incorrectly. I am running
curl -XPUT 'localhost:9200/_snapshot/products-v0.2.1' -d '{
"products-v0.2.1": { "type": "s3", "settings": { "region": "us-east",
"bucket": "my-bucket" } } }'

So I am using the PUT method. When I do so I get the error I mentioned
above.

On Friday, September 5, 2014 1:46:28 AM UTC-5, David Pilato wrote:

Do you try to create a repo?
If so, you need to use PUT method. Something like:

$ curl -XPUT 'http://localhost:9200/_snapshot/my_s3_repository' -d '{ "type": "s3", "settings": { "bucket": "my_bucket_name", "region": "us-west" }}'

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 4 sept. 2014 à 17:58, Dylan Lingelbach dy...@markitx.com a écrit :

Hi,

We are trying to migrate our data running on ES cluster running version
1.0.3 to a cluster running version 1.3.2. Our cluster on version 1.0.3 is
snapshotted to S3. I would like to restore that snapshot to our cluster
running 1.3.2. I am unable to create the S3 repository however on my
cluster running 1.3.2.

I have installed version 2.3.0 of the aws-cloud plugin.

Here is the command I am running:

curl 'localhost:9200/_snapshot/products-v0.2.1' -d '{ "products-v0.2.1":
{ "type": "s3", "settings": { "region": "us-east", "bucket": "my-bucket" }
} }'
Here is the response I get:

{"error":"ActionRequestValidationException[Validation Failed: 1: type is
missing;]","status":500}
Any tips or suggestions would be appreciated.

Thanks,

Dylan

You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearc...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/
msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%
40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/dc243553-8f14-4455-86ac-4d66a364f708%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com
https://groups.google.com/d/msgid/elasticsearch/3171b2ed-5f1b-4c8d-b4c5-d1f0b03fe6b1%40googlegroups.com?utm_medium=email&utm_source=footer
.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/uAU8vOuB6wo/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/etPan.5409d39a.7c3dbd3d.ec11%40MacBook-Air-de-David.local
https://groups.google.com/d/msgid/elasticsearch/etPan.5409d39a.7c3dbd3d.ec11%40MacBook-Air-de-David.local?utm_medium=email&utm_source=footer
.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CAF32VtrZUbExyahkiDAgQhh0kO2q75uPB5yVq_R3YHabQfMWjA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


(system) #6