# Shutdown api not working

**URL:** <https://discuss.elastic.co/t/shutdown-api-not-working/8318>\
**Category:** Elasticsearch\
**Created:** [July 5, 2012, 12:42am UTC](https://discuss.elastic.co/t/shutdown-api-not-working/8318 "2012-07-05T00:42:40Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![T\_Vinod\_Gupta](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@T\_Vinod\_Gupta](https://discuss.elastic.co/u/T_Vinod_Gupta)\
**Post date:** [July 5, 2012, 12:42am UTC](https://discuss.elastic.co/t/shutdown-api-not-working/8318/1 "2012-07-05T00:42:40Z")

</div>

i was trying to follow the instructions here to gracefully shutdown ES. but  
its not working.. are there any gotchas?

> <https://github.com/elastic/elasticsearch/issues/64>

im using 0.18.7 version.

thanks

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [July 5, 2012, 7:24am UTC](https://discuss.elastic.co/t/shutdown-api-not-working/8318/2 "2012-07-05T07:24:44Z")

</div>

On Wed, 2012-07-04 at 17:42 -0700, T Vinod Gupta wrote:

> i was trying to follow the instructions here to gracefully shutdown  
> ES. but its not working.. are there any gotchas?
> 
> [Shutdown API: allow to shutdown node(s) or the whole cluster · Issue #64 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/64)

Should just work. What command did you issue and what problem did you  
see?

---

<div class="post-metadata">

**Author:** ![T\_Vinod\_Gupta](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@T\_Vinod\_Gupta](https://discuss.elastic.co/u/T_Vinod_Gupta)\
**Post date:** [July 5, 2012, 7:27am UTC](https://discuss.elastic.co/t/shutdown-api-not-working/8318/3 "2012-07-05T07:27:43Z")

</div>

curl -XGET '[http://localhost:9200/\_cluster/nodes/\_shutdown?pretty=true](http://localhost:9200/_cluster/nodes/_shutdown?pretty=true)'

running this was like a nop..  
i got the below output -

{  
"cluster\_name" : "elasticsearch",  
"nodes" : {  
}  
}

thanks

On Thu, Jul 5, 2012 at 12:24 AM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> On Wed, 2012-07-04 at 17:42 -0700, T Vinod Gupta wrote:
> 
> > i was trying to follow the instructions here to gracefully shutdown  
> > ES. but its not working.. are there any gotchas?
> > 
> > [Shutdown API: allow to shutdown node(s) or the whole cluster · Issue #64 · elastic/elasticsearch · GitHub](https://github.com/elasticsearch/elasticsearch/issues/64)
> 
> Should just work. What command did you issue and what problem did you  
> see?

---

<div class="post-metadata">

**Author:** ![Clinton\_Gormley](https://avatars.discourse-cdn.com/v4/letter/c/50afbb/32.png) [@Clinton\_Gormley](https://discuss.elastic.co/u/Clinton_Gormley)\
**Post date:** [July 5, 2012, 7:30am UTC](https://discuss.elastic.co/t/shutdown-api-not-working/8318/4 "2012-07-05T07:30:33Z")

</div>

On Thu, 2012-07-05 at 00:27 -0700, T Vinod Gupta wrote:

> curl -XGET  
> '[http://localhost:9200/\_cluster/nodes/\_shutdown?pretty=true](http://localhost:9200/_cluster/nodes/_shutdown?pretty=true)'

That should be a POST

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

clint

---

<div class="post-metadata">

**Author:** ![T\_Vinod\_Gupta](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@T\_Vinod\_Gupta](https://discuss.elastic.co/u/T_Vinod_Gupta)\
**Post date:** [July 5, 2012, 7:33am UTC](https://discuss.elastic.co/t/shutdown-api-not-working/8318/5 "2012-07-05T07:33:17Z")

</div>

thanks, my bad - i didnt see this page.. somehow google search gave me the  
other link and i just followed it!

On Thu, Jul 5, 2012 at 12:30 AM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:

> On Thu, 2012-07-05 at 00:27 -0700, T Vinod Gupta wrote:
> 
> > curl -XGET  
> > '[http://localhost:9200/\_cluster/nodes/\_shutdown?pretty=true](http://localhost:9200/_cluster/nodes/_shutdown?pretty=true)'
> 
> That should be a POST
> 
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown.html)
> 
> clint

---

<div class="post-metadata">

**Author:** ![T\_Vinod\_Gupta](https://avatars.discourse-cdn.com/v4/letter/t/fbc32d/32.png) [@T\_Vinod\_Gupta](https://discuss.elastic.co/u/T_Vinod_Gupta)\
**Post date:** [July 9, 2012, 12:09pm UTC](https://discuss.elastic.co/t/shutdown-api-not-working/8318/6 "2012-07-09T12:09:50Z")

</div>

i see that " curl -XPOST '  
[http://localhost:9200/\_cluster/nodes/\_shutdown?pretty=true](http://localhost:9200/_cluster/nodes/_shutdown?pretty=true)' " does the job  
of virtually shutting down ES by not making it accept any further requests  
etc. but it doesn't kill the process.. so one has to run kill -9   
too.. is that normal?

thanks

On Thu, Jul 5, 2012 at 12:33 AM, T Vinod Gupta [tvinod@readypulse.com](mailto:tvinod@readypulse.com)wrote:

> thanks, my bad - i didnt see this page.. somehow google search gave me the  
> other link and i just followed it!
> 
> On Thu, Jul 5, 2012 at 12:30 AM, Clinton Gormley [clint@traveljury.com](mailto:clint@traveljury.com)wrote:
> 
> > On Thu, 2012-07-05 at 00:27 -0700, T Vinod Gupta wrote:
> > 
> > > curl -XGET  
> > > '[http://localhost:9200/\_cluster/nodes/\_shutdown?pretty=true](http://localhost:9200/_cluster/nodes/_shutdown?pretty=true)'
> > 
> > That should be a POST
> > 
> > [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/api/admin-cluster-nodes-shutdown.html)
> > 
> > clint

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 3:20am UTC](https://discuss.elastic.co/t/shutdown-api-not-working/8318/7 "2017-07-06T03:20:57Z")

</div>


