Configure Elasticsearch for single node — standalone server
Elasticsearch runs in distributed mode by default. Nodes assume that there are or will be a part of the cluster, and during setup nodes try to automatically join the cluster.
In development machine you might want your Elasticsearch to be available for only yourself without the need in communicating with other Elasticsearch node in your LAN. It works similar to a standalone server. To do this we can tell Elasticsearch to work in local only (disable network):
open your elasticsearch/config/elasticsearch.yml
cluster.name: channa_dev_machine # give a specific name for your cluster node.local: true # disable network
Start your elasticsearch:
/bin$ ../elasticsearch -f
[AdSense-A]Originally published at http://www.channaly.info/configure-elasticsearch-for-single-node-standalone-server/ on May 8, 2013.