# Run two nodes at ElasticSearch

**URL:** <https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016>\
**Category:** Elasticsearch\
**Created:** [June 15, 2018, 1:56am UTC](https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016 "2018-06-15T01:56:58Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cecoke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cecoke/32/55308_2.png) [@cecoke](https://discuss.elastic.co/u/cecoke)\
**Post date:** [June 15, 2018, 1:56am UTC](https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016/1 "2018-06-15T01:56:58Z")

</div>

Hi,

I checked out ElasticSearch from github and added some code. I was able to test it with "gradlew run" on a cluster of a single node.

Now I would like to create a cluster of two nodes on the same development machine using the new code. What are the steps to do that?

If I can still rely on "gradlew run", I tried to update distribution/src/config/elasticsearch.yml and run "gradlew run" but it doesn't seem to change.

If I cannot rely on "gradlew run", how do I build the project and run it to create the nodes locally for a cluster?

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [June 15, 2018, 4:18am UTC](https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016/2 "2018-06-15T04:18:22Z")

</div>

Why not just use a tar.gz/zip/exe/deb/rpm/docker instance?

---

<div class="post-metadata">

**Author:** ![cecoke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cecoke/32/55308_2.png) [@cecoke](https://discuss.elastic.co/u/cecoke)\
**Post date:** [June 15, 2018, 4:57pm UTC](https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016/3 "2018-06-15T16:57:25Z")

</div>

Deleted the original question

---

<div class="post-metadata">

**Author:** ![cecoke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cecoke/32/55308_2.png) [@cecoke](https://discuss.elastic.co/u/cecoke)\
**Post date:** [June 15, 2018, 5:53pm UTC](https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016/4 "2018-06-15T17:53:11Z")

</div>

Deleted

---

<div class="post-metadata">

**Author:** ![cecoke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cecoke/32/55308_2.png) [@cecoke](https://discuss.elastic.co/u/cecoke)\
**Post date:** [June 15, 2018, 5:56pm UTC](https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016/5 "2018-06-15T17:56:17Z")

</div>

The reason why I need to run the locally built artifacts is I have changed the application code and want to verify it in a cluster. So I cannot use downloaded releases.

---

<div class="post-metadata">

**Author:** ![DavidTurner](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/davidturner/32/22453_2.png) [@DavidTurner](https://discuss.elastic.co/u/DavidTurner)\
**Post date:** [June 15, 2018, 10:04pm UTC](https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016/6 "2018-06-15T22:04:54Z")

</div>

`./gradlew assemble` builds the distribution artifacts (tarballs etc.). Once built, you can unpack them and run them similarly to a released artifact. The details are in the [contributing guide](https://github.com/elastic/elasticsearch/blob/master/CONTRIBUTING.md#creating-a-distribution).

---

<div class="post-metadata">

**Author:** ![cecoke](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/cecoke/32/55308_2.png) [@cecoke](https://discuss.elastic.co/u/cecoke)\
**Post date:** [June 18, 2018, 6:13pm UTC](https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016/7 "2018-06-18T18:13:52Z")

</div>

Thank you so much, David! I should have found and read this useful CONTRIBUTING.md.

Closing this question.

---

<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 16, 2018, 6:13pm UTC](https://discuss.elastic.co/t/run-two-nodes-at-elasticsearch/136016/8 "2018-07-16T18:13:53Z")

</div>

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