# How to create multiple node in one cluster

**URL:** <https://discuss.elastic.co/t/how-to-create-multiple-node-in-one-cluster/266227>\
**Category:** Elasticsearch\
**Created:** [March 4, 2021, 11:40am UTC](https://discuss.elastic.co/t/how-to-create-multiple-node-in-one-cluster/266227 "2021-03-04T11:40:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Moksedul\_Islam\_16](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/moksedul_islam_16/32/84942_2.png) [@Moksedul\_Islam\_16](https://discuss.elastic.co/u/Moksedul_Islam_16)\
**Post date:** [March 4, 2021, 11:40am UTC](https://discuss.elastic.co/t/how-to-create-multiple-node-in-one-cluster/266227/1 "2021-03-04T11:40:32Z")

</div>

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](https://stackoverflow.com/questions/35717790/how-to-add-a-new-node-to-my-elasticsearch-cluster)
2. [Multiple nodes in ElasticSearch](https://stackoverflow.com/questions/13477303/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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [April 1, 2021, 11:41am UTC](https://discuss.elastic.co/t/how-to-create-multiple-node-in-one-cluster/266227/2 "2021-04-01T11:41:19Z")

</div>

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