# Does path.home now HAVE to be a command-line or System property setting?

**URL:** <https://discuss.elastic.co/t/does-path-home-now-have-to-be-a-command-line-or-system-property-setting/42790>\
**Category:** Elasticsearch\
**Created:** [February 25, 2016, 10:51pm UTC](https://discuss.elastic.co/t/does-path-home-now-have-to-be-a-command-line-or-system-property-setting/42790 "2016-02-25T22:51:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![tbessie](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@tbessie](https://discuss.elastic.co/u/tbessie)\
**Post date:** [February 25, 2016, 10:51pm UTC](https://discuss.elastic.co/t/does-path-home-now-have-to-be-a-command-line-or-system-property-setting/42790/1 "2016-02-25T22:51:56Z")

</div>

With prior versions of Elasticsearch (last I was using was 1.5.2), elasticsearch.yml could be located by the client in the classpath or some default location, and path.home would be set within it.

Now, I'm getting errors about Elasticsearch not having path.home set; is it no longer allowed to set it in elasticsearch.yml, and to have elasticsearch.yml located in a standard place that the client can find it? Do I now HAVE to supply a -Dpath.home= ... argument when I start my app server so that the Elasticsearch client can find elasticsearch.yml? I didn't even have to set es.config before.

If so, why was this change made? Why not look for elasticsearch.yml in a default location, or in the classpath?

- Tim

---

<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:** [February 27, 2016, 12:00am UTC](https://discuss.elastic.co/t/does-path-home-now-have-to-be-a-command-line-or-system-property-setting/42790/2 "2016-02-27T00:00:29Z")

</div>

Check [https://www.elastic.co/guide/en/elasticsearch/reference/2.2/breaking\_20\_setting\_changes.html#\_command\_line\_flags](https://www.elastic.co/guide/en/elasticsearch/reference/2.2/breaking_20_setting_changes.html#_command_line_flags) for the breaking change nodes.

You can change the base config path, but that path needs to contain _all_ config files, you cannot have one path for `elasticsearch.yml`, another for Shield etc.

---

<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:13pm UTC](https://discuss.elastic.co/t/does-path-home-now-have-to-be-a-command-line-or-system-property-setting/42790/3 "2017-07-05T23:13:10Z")

</div>

Closed on July 5, 2017, 11:13pm UTC


