# Setting \[cluster\] must not be empty

**URL:** <https://discuss.elastic.co/t/setting-cluster-must-not-be-empty/178739>\
**Category:** Elasticsearch\
**Created:** [April 27, 2019, 9:12am UTC](https://discuss.elastic.co/t/setting-cluster-must-not-be-empty/178739 "2019-04-27T09:12:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kiran\_Kumar\_Mohanty](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kiran_kumar_mohanty/32/45151_2.png) [@Kiran\_Kumar\_Mohanty](https://discuss.elastic.co/u/Kiran_Kumar_Mohanty)\
**Post date:** [April 27, 2019, 9:12am UTC](https://discuss.elastic.co/t/setting-cluster-must-not-be-empty/178739/1 "2019-04-27T09:12:40Z")

</div>

Version - 7.0.0

While I am trying to start elasticsearch from the command line using below command getting an error "_setting [cluster] must not be empty_"

**Command**

./bin/elasticsearch -Ecluster.name=my\_cluster -Enode.name=node\_1

---

<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:** [April 28, 2019, 2:27am UTC](https://discuss.elastic.co/t/setting-cluster-must-not-be-empty/178739/2 "2019-04-28T02:27:37Z")

</div>

Please share the entire command, as well as the entire error from your command prompt/shell.

Please format your code/logs/config using the `</>` button, or markdown style back ticks. It helps to make things easy to read which helps us help you 🙂

---

<div class="post-metadata">

**Author:** ![nahumtimerman](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nahumtimerman/32/47683_2.png) [@nahumtimerman](https://discuss.elastic.co/u/nahumtimerman)\
**Post date:** [May 2, 2019, 1:14am UTC](https://discuss.elastic.co/t/setting-cluster-must-not-be-empty/178739/3 "2019-05-02T01:14:45Z")

</div>

Hi, I had the same issue.

Solution was running the command like this (added spaces):

**./bin/elasticsearch -E cluster.name="my\_cluster" -E node.name="node\_1"**

---

<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:** [May 31, 2019, 12:33pm UTC](https://discuss.elastic.co/t/setting-cluster-must-not-be-empty/178739/5 "2019-05-31T12:33:33Z")

</div>

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