Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't close ElasticSearch index on AWS?

I've created a new AWS ElasticSearch domain, for testing. I use ES on a different host right now, and I'm looking to move to AWS.

One thing I need to do is set the mapping (analyzers) on my instance. In order to do this, I need to "close" the index, or else ES will just raise an exception.

Whenever I try to close the index, though, I get an exception from AWS:

Your request: '/_all/_close' is not allowed by CloudSearch.

The AWS ES documentation specifically says to do this in some cases:

 curl -XPOST 'http://search-weblogs-abcdefghijklmnojiu.us-east-1.a9.com/_all/_close'

I haven't found any documentation that says why I wouldn't be able to close my indices on AWS ES, nor have I found anyone else who has this problem.

It's also a bit strange that I've got an ElasticSearch domain, but it's giving me a CloudSearch error message, since I thought those were different services, though I suppose one is implemented in terms of the other.

thanks!

like image 995
Ken Too Avatar asked Oct 13 '15 21:10

Ken Too


People also ask

How do I close Elasticsearch index?

To close all indices, use _all or * . By default, you must explicitly name the indices you are closing. To specify indices to close with _all , * , or other wildcard expressions, change the action. destructive_requires_name setting to false .

How do I stop Elasticsearch cluster in AWS?

You will have to delete the cluster for billing to stop. However, if you want to backup the data for later experiments, you can take manual snapshots (link rotten, check archived page here) of the indices to your S3 buckets.

How do I restart AWS Elasticsearch?

To reboot an AWS Elasticsearch cluster, the only way is to log a support ticket and they will schedule a reboot for you.


1 Answers

AWS Elasticsearch does not support the "close" operation on indexes.

http://docs.aws.amazon.com/elasticsearch-service/latest/developerguide/es-managedomains.html

"Currently, Amazon ES does not support the Elasticsearch _close API"

like image 51
burn0050 Avatar answered Sep 19 '22 20:09

burn0050