# About the data.path

**URL:** <https://discuss.elastic.co/t/about-the-data-path/59952>\
**Category:** Elasticsearch\
**Created:** [September 7, 2016, 8:51am UTC](https://discuss.elastic.co/t/about-the-data-path/59952 "2016-09-07T08:51:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![1222kkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1222kkk/32/23635_2.png) [@1222kkk](https://discuss.elastic.co/u/1222kkk)\
**Post date:** [September 7, 2016, 8:51am UTC](https://discuss.elastic.co/t/about-the-data-path/59952/1 "2016-09-07T08:51:27Z")

</div>

As I have two elastic nodes and set both of their "data.path" to "`/var/elastic/data`".

After indexing data, I found a strange state:  
the first node:  
`/var/elastic/data/0/....indices`  
the second node:  
`/var/elastic/data/0/...indices`  
`/var/elastic/data/1/...indices`

why the second node has directory "1" and "0" while the first only has "0"?

---

<div class="post-metadata">

**Author:** ![colings86](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colings86/32/44960_2.png) [@colings86](https://discuss.elastic.co/u/colings86)\
**Post date:** [September 7, 2016, 9:06am UTC](https://discuss.elastic.co/t/about-the-data-path/59952/2 "2016-09-07T09:06:59Z")

</div>

Are these two nodes on the same machine? or did you start multiple Elasticsearch processes on the second machine? The `0` is the directory for the first running Elasticsearch process and `1` is the directory for the second running Elasticsearch process so the fact that you have both suggests that (intentionally or unintentionally) you have two Elasticsearch processes running on that machine.

---

<div class="post-metadata">

**Author:** ![1222kkk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/1222kkk/32/23635_2.png) [@1222kkk](https://discuss.elastic.co/u/1222kkk)\
**Post date:** [September 7, 2016, 9:12am UTC](https://discuss.elastic.co/t/about-the-data-path/59952/3 "2016-09-07T09:12:42Z")

</div>

Thanks for your reply.  
I may really run two elastic processes or different versions(maybe) in the past so I have two directories now.

---

<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, 10:22pm UTC](https://discuss.elastic.co/t/about-the-data-path/59952/4 "2017-07-05T22:22:06Z")

</div>


