How to create multiple node in one cluster

I have tried to create 3 nodes in my ES for "production", "development", "testing" using 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 StackOverflow answers but failed.

  1. How to add a new node to my Elasticsearch cluster
  2. 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

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.