Elasticsearch : Shutdown a local node
Elasticsearch is a fantastic tool for adding search and indexing capability to your website or application. Basically, it functions just like the indexes that you get to see on paper books which enable faster searching. This short tutorial is about how to shutdown a local Elasticsearch node(on your server) ... because the traditional way of thinking should be issuing a command line to the elasticsearch executable.... but in this case, it is more complicated. So....
Problem : How to shutdown a local Elasticsearch node ?
Solution : Use this command
$ curl -XPOST 'http://localhost:9200/cluster/nodes/local/_shutdown'
and if you are looking to shutdown entire cluster of nodes, use one of these commands
$ curl -XPOST 'http://localhost:9200/_shutdown'
$ curl -XPOST 'http://localhost:9200/cluster/nodes/shutdown'
$ curl -XPOST 'http://localhost:9200/cluster/nodes/all/_shutdown'
Reference :
http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/cluster-nodes-shutdown.html
By Adam Ng
IF you gain some knowledge or the information here solved your programming problem. Please consider donating to the less fortunate or some charities that you like. Apart from donation, planting trees, volunteering or reducing your carbon footprint will be great too.
Advertisement
Tutorials
+6k AWS S3 : Prevent Hotlinking policy
+7k Swift : substringWithRange() function example
+11.9k Golang : How to detect a server/machine network interface capabilities?
+31.9k Golang : Get local IP and MAC address
+12.6k Golang : HTTP response JSON encoded data
+4.5k Golang : Valued expressions and functions example
+16.5k Golang : Find out mime type from bytes in buffer
+12.6k Elastic Search : Return all records (higher than default 10)
+16.2k Golang : Read large file with bufio.Scanner cause token too long error
+6.8k Golang : How to validate ISBN?
+3.7k Java : Get FX sentiment from website example
+30.8k Golang : Remove characters from string example