I installed elastic search in my local machine, I want to configure it as the only one single node in the cluster(Standalone Server). it means whenever I create a new index, it will only available to my server. It will not be accessible to other's server.
My current scenario these indexes are available to other servers (the servers are formed in a cluster), and they can make any changes to my indexes. But I don't want it.
I went through some other blogs but not getting best solution. So can you please let me know steps for same?
Here's relevant info for ElasticSearch 5:
According to changelog, to enable local mode on ES 5 you need to add
transport.type: local
to yourelasticsearch.yml
instead ofnode.local: true
.If you're using a network transport in your code, this won't work, as
node.local
gives you a LocalTransport only:http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-transport.html#_local_transport
The trick then is to set
discovery.zen.ping.multicast: false
in your
elasticsearch.yml
which will stop your node looking for any other nodes.http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-discovery-zen.html#multicast
I'm not sure if this prevents other nodes from discovering yours though; I only needed this to affect a group of nodes with the same settings on the same network.
This solve your problem:
Tested with ES version 5.