0

How do I create a no data node using curl? Documentation here says set node.data to false. Is this the right way?

curl -XPUT 'http://localhost:9200/foo' -d '{"node.data" : "false"}'
Michael
  • 13,838
  • 18
  • 52
  • 81

1 Answers1

3

You cannot create a no data node using curl. When you can access the node using curl, the node is already running and it's not possible to convert a running data node to a no-data node.

You can make node a no-data node by adding node.data: false to the config/elasticsearch.yml file and restarting the node.

imotov
  • 28,277
  • 3
  • 90
  • 82