# Create multi nodes on a single cluster into ES 2.0

**URL:** <https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296>\
**Category:** Elasticsearch\
**Created:** [November 23, 2015, 11:00am UTC](https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296 "2015-11-23T11:00:03Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)\
**Post date:** [November 23, 2015, 11:00am UTC](https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296/1 "2015-11-23T11:00:03Z")

</div>

Hi, is possible to create and starts multi nodes on a single cluster into ES 2.0?  
I've tried the common config and some console commands but both don't work.  
I known that some console commands are disabled but i can't create a second node on my server.

Someone can help me???

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [November 23, 2015, 11:15am UTC](https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296/2 "2015-11-23T11:15:51Z")

</div>

> [@cirot87](#):
>
> is possible to create and starts multi nodes on a single cluster into ES 2.0

Is there a typo in there - from what you write below it looks like you want to start multiple nodes on a single _server_?

> [@cirot87](#):
>
> I've tried the common config and some console commands but both don't work.

Without knowing what exactly you did it's hard to guess what went wrong.

If you are indeed trying to run multiple ES nodes on one server the following instructions might help you:

> [@Can I run multiple Elasticsearch nodes on the same machine?](https://discuss.elastic.co/t/can-i-run-multiple-elaticsearch-nodes-on-the-same-machine/67):
>
> We generally recommend scaling horizontally by adding small/medium machines. But we do have a few customers with big machines (eg. 512 RAM, 256 cores, etc..) who have deployed multiple Elasticsearch nodes per big machine. There are some caveats and recommendations if you choose this deployment architecture: Max heap size for each node instance should be \< 32Gb. This is because a heap size above 32Gb will actually be counterproductive for the JVM will stop compressing pointers ([https://wikis…](https://wikis.oracle.com/display/HotSpotInternals/CompressedOops)

Hope this helps,  
Isabel

---

<div class="post-metadata">

**Author:** ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)\
**Post date:** [November 23, 2015, 12:10pm UTC](https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296/3 "2015-11-23T12:10:41Z")

</div>

yes, i talk about to start two nodes in one Server.

i have created two config file but if i try to start both with this command:

bin/elasticsearch -Des.config=$ES\_HOME/config/elasticsearch.1.yml

don't work.

I've read that -Des command is now disabled in the ES 2.0, maybe this is wrong.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 23, 2015, 12:31pm UTC](https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296/4 "2015-11-23T12:31:43Z")

</div>

`es.config` has been removed. You can use `es.path.conf` instead.

The dir you will declare there needs to have an `elasticsearch.yml` file.

So basically run:

```
bin/elasticsearch -Des.path.conf=$ES_HOME/config1
bin/elasticsearch -Des.path.conf=$ES_HOME/config2

```

Have a look at: [https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-dir-layout.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/setup-dir-layout.html)

---

<div class="post-metadata">

**Author:** ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)\
**Post date:** [November 23, 2015, 2:24pm UTC](https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296/5 "2015-11-23T14:24:45Z")

</div>

Oh! i miss this modify... but if i try:

/usr/share/elasticsearch/bin/elasticsearch -Des.path.conf=/etc/elasticsearch/config1/elasticsearch.1.yml

i have this error:

Exception in thread "main" java.lang.RuntimeException: don't run elasticsearch as root.  
at org.elasticsearch.bootstrap.Bootstrap.initializeNatives(Bootstrap.java:92)  
at org.elasticsearch.bootstrap.Bootstrap.setup(Bootstrap.java:138)  
at org.elasticsearch.bootstrap.Bootstrap.init(Bootstrap.java:270)  
at org.elasticsearch.bootstrap.Elasticsearch.main(Elasticsearch.java:35)

What i do wrong?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 23, 2015, 2:47pm UTC](https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296/6 "2015-11-23T14:47:56Z")

</div>

I think the message is really clear here:

```
don't run elasticsearch as root.
```

---

<div class="post-metadata">

**Author:** ![cirot87](https://avatars.discourse-cdn.com/v4/letter/c/b782af/32.png) [@cirot87](https://discuss.elastic.co/u/cirot87)\
**Post date:** [November 23, 2015, 4:43pm UTC](https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296/7 "2015-11-23T16:43:46Z")

</div>

sorry, normally i run its as admin.....Thanks for the help!!!

---

<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:** [July 5, 2017, 11:36pm UTC](https://discuss.elastic.co/t/create-multi-nodes-on-a-single-cluster-into-es-2-0/35296/8 "2017-07-05T23:36:31Z")

</div>


