Score:0

How do I shutdown a specific node in ElasticSearch?

lk flag

I'm running ElasticSearch 7.3.2 and I found this page documenting how to shut down a node: https://www.elastic.co/guide/en/elasticsearch/reference/7.17/put-shutdown.html

I tried running this command (with the right node id):

curl -X PUT "localhost:9200/_nodes/<MYNODEID>/shutdown?pretty" -H 'Content-Type: application/json' -d '{"type": "remove"}'

and I'm getting this error:

{
  "error" : "Incorrect HTTP method for uri [/_nodes/vm0GI_MBS92B9Mahxt9Q7Q/shutdown?pretty] and method [PUT], allowed: [GET]",
  "status" : 405
}

What am I missing here?

I'm shutting down this node for removal, but I also want to shut down others for restart.

asktyagi avatar
in flag
Please add node status along with any roles/permission based cluster details.
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.