I need to create 3 different nodes for 2 separate applications for each in one machine. First, I tried to create 3 nodes in my ES for "production", "development", "testing" using the command:
bin/elasticsearch -Epath.data=data1 -Epath.logs=log1
My elasticsearch.yml file located at admin:///etc/elasticsearch and getting error as:
bash: bin/elasticsearch: No such file or directory
Besides, I also tried modifying elasticsearch.yml file following questions answers but failed.
How to add a new node to my Elasticsearch cluster
Multiple nodes in ElasticSearch
But I can not create separate nodes. My purpose is to test my application separately so that it doesn't affect the main node. Here are respentive lines of my elasticsearch.yml file:
cluster.name : scidatamanager
node.name : "dev"
node.name : "test"
node.master: true
node.data: false
http.port: 9200
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["127.0.0.1"]
cluster.name : scidatamanager
node.name : "test"
node.master: false
node.data: true
http.port: 9201
discovery.zen.ping.multicast.enabled: false
discovery.zen.ping.unicast.hosts: ["127.0.0.2"]
path.data: /var/lib/elasticsearch
path.logs: /var/log/elasticsearch
I have also asked the same thing elasic discussion forum(Here).