# 2 nodes but shows 1 directory

**URL:** <https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749>\
**Category:** Elasticsearch\
**Created:** [May 17, 2012, 7:02pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749 "2012-05-17T19:02:11Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [May 17, 2012, 7:02pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/1 "2012-05-17T19:02:11Z")

</div>

I have 2 nodes cluster but under nodes directory I see only one node. It's  
something like:

I thought I'll see 0 and 1 since I have 2 nodes in the cluster?

# ls -ltr nodes/

total 4

drwxr-xr-x 3 root root 4096 May 16 17:23 0

# ls -ltr nodes/0/

total 4

-rw-r--r-- 1 root root 0 May 16 17:21 node.lock

drwxr-xr-x 4 root root 4096 May 17 11:52 indices

---

<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:** [May 17, 2012, 7:36pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/2 "2012-05-17T19:36:18Z")

</div>

Do you have two different paths for data ?

Each node must have its data Path.

Envoyé de mon iPad

Le 17 mai 2012 à 21:02, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com) a écrit :

> I have 2 nodes cluster but under nodes directory I see only one node. It's something like:
> 
> I thought I'll see 0 and 1 since I have 2 nodes in the cluster?
> 
> # ls -ltr nodes/
> 
> total 4
> 
> drwxr-xr-x 3 root root 4096 May 16 17:23 0
> 
> # ls -ltr nodes/0/
> 
> total 4
> 
> -rw-r--r-- 1 root root 0 May 16 17:21 node.lock
> 
> drwxr-xr-x 4 root root 4096 May 17 11:52
> 
> indices

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [May 17, 2012, 7:53pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/3 "2012-05-17T19:53:05Z")

</div>

Add "env: DEBUG" to config/logging.yml so it looks like this:

rootLogger: INFO, console, file  
logger:

- env: DEBUG\*

# log action execution errors for easier debugging

action: DEBUG

Restart the nodes and find the following line in the log files.

[2012-05-17 15:47:54,109][DEBUG][env] [Sunset Bain]  
using node location [[....\* /some/path/here\* ...]], local\_node\_id [0]

Do they point to the same location?

On Thursday, May 17, 2012 3:02:11 PM UTC-4, Mo wrote:

> I have 2 nodes cluster but under nodes directory I see only one node. It's  
> something like:
> 
> I thought I'll see 0 and 1 since I have 2 nodes in the cluster?
> 
> # ls -ltr nodes/
> 
> total 4
> 
> drwxr-xr-x 3 root root 4096 May 16 17:23 0
> 
> # ls -ltr nodes/0/
> 
> total 4
> 
> -rw-r--r-- 1 root root 0 May 16 17:21 node.lock
> 
> drwxr-xr-x 4 root root 4096 May 17 11:52  
> indices

---

<div class="post-metadata">

**Author:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [May 17, 2012, 9:19pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/4 "2012-05-17T21:19:19Z")

</div>

Do I need to change some id everytime I add a node?

[2012-05-17 14:17:36,533][INFO][node] [Blaire, Allison] {0.19.3}[17598]:  
initializing ...

[2012-05-17 14:17:36,566][INFO][plugins] [Blaire, Allison] loaded  
[hadoop], sites [hadoop]

[2012-05-17 14:17:36,580][DEBUG][env] [Blaire, Allison] using node  
location [[/root/.mohit/elasticsearch/data/elasticsearch/nodes/0]],  
local\_node\_id [0]

## [2012-05-17 14:17:38,560][INFO][node] [Blaire, Allison] {0.19.3}[17598]: initialized

[2012-05-17 14:26:46,968][INFO][plugins] [Power, Julie] loaded [hadoop],  
sites [hadoop]

[2012-05-17 14:26:46,982][DEBUG][env] [Power, Julie] using node location  
[[/root/.mohit/elasticsearch/data/elasticsearch/nodes/0]], local\_node\_id [0]

[2012-05-17 14:26:48,992][INFO][node] [Power, Julie] {0.19.3}[15036]:  
initialized

On Thu, May 17, 2012 at 12:53 PM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:

> Add "env: DEBUG" to config/logging.yml so it looks like this:
> 
> rootLogger: INFO, console, file  
> logger:
> 
> - env: DEBUG\*
> 
> # log action execution errors for easier debugging
> 
> action: DEBUG
> 
> Restart the nodes and find the following line in the log files.
> 
> [2012-05-17 15:47:54,109][DEBUG][env] [Sunset  
> Bain] using node location [[....\* /some/path/here\* ...]], local\_node\_id  
> [0]
> 
> Do they point to the same location?
> 
> On Thursday, May 17, 2012 3:02:11 PM UTC-4, Mo wrote:
> 
> > I have 2 nodes cluster but under nodes directory I see only one node.  
> > It's something like:
> > 
> > I thought I'll see 0 and 1 since I have 2 nodes in the cluster?
> > 
> > # ls -ltr nodes/
> > 
> > total 4
> > 
> > drwxr-xr-x 3 root root 4096 May 16 17:23 0
> > 
> > # ls -ltr nodes/0/
> > 
> > total 4
> > 
> > -rw-r--r-- 1 root root 0 May 16 17:21 node.lock
> > 
> > drwxr-xr-x 4 root root 4096 May 17 11:52  
> > indices

---

<div class="post-metadata">

**Author:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [May 18, 2012, 5:09pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/5 "2012-05-18T17:09:57Z")

</div>

Any suggestions?

On Thu, May 17, 2012 at 2:19 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:

> Do I need to change some id everytime I add a node?
> 
> [2012-05-17 14:17:36,533][INFO][node] [Blaire, Allison] {0.19.3}[17598]:  
> initializing ...
> 
> [2012-05-17 14:17:36,566][INFO][plugins] [Blaire, Allison] loaded  
> [hadoop], sites [hadoop]
> 
> [2012-05-17 14:17:36,580][DEBUG][env] [Blaire, Allison] using node  
> location [[/root/.mohit/elasticsearch/data/elasticsearch/nodes/0]],  
> local\_node\_id [0]
> 
> ## [2012-05-17 14:17:38,560][INFO][node] [Blaire, Allison] {0.19.3}[17598]: initialized
> 
> [2012-05-17 14:26:46,968][INFO][plugins] [Power, Julie] loaded [hadoop],  
> sites [hadoop]
> 
> [2012-05-17 14:26:46,982][DEBUG][env] [Power, Julie] using node location  
> [[/root/.mohit/elasticsearch/data/elasticsearch/nodes/0]], local\_node\_id [0]
> 
> [2012-05-17 14:26:48,992][INFO][node] [Power, Julie] {0.19.3}[15036]:  
> initialized
> 
> On Thu, May 17, 2012 at 12:53 PM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:
> 
> > Add "env: DEBUG" to config/logging.yml so it looks like this:
> > 
> > rootLogger: INFO, console, file  
> > logger:
> > 
> > - env: DEBUG\*
> > 
> > # log action execution errors for easier debugging
> > 
> > action: DEBUG
> > 
> > Restart the nodes and find the following line in the log files.
> > 
> > [2012-05-17 15:47:54,109][DEBUG][env] [Sunset  
> > Bain] using node location [[....\* /some/path/here\* ...]], local\_node\_id  
> > [0]
> > 
> > Do they point to the same location?
> > 
> > On Thursday, May 17, 2012 3:02:11 PM UTC-4, Mo wrote:
> > 
> > > I have 2 nodes cluster but under nodes directory I see only one node.  
> > > It's something like:
> > > 
> > > I thought I'll see 0 and 1 since I have 2 nodes in the cluster?
> > > 
> > > # ls -ltr nodes/
> > > 
> > > total 4
> > > 
> > > drwxr-xr-x 3 root root 4096 May 16 17:23 0
> > > 
> > > # ls -ltr nodes/0/
> > > 
> > > total 4
> > > 
> > > -rw-r--r-- 1 root root 0 May 16 17:21 node.lock
> > > 
> > > drwxr-xr-x 4 root root 4096 May 17 11:52  
> > > indices

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [May 18, 2012, 5:41pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/6 "2012-05-18T17:41:49Z")

</div>

So, it looks like they are indeed using the same directory. I guess the  
question is are these nodes actually running? Could you run

curl localhost:9200  
curl localhost:9201

to see if you have two nodes running on the same machine at the same time.

What kind of filesystem is /root/.mohit/?

Could you post your config file?

On Friday, May 18, 2012 1:09:57 PM UTC-4, Mo wrote:

> Any suggestions?
> 
> On Thu, May 17, 2012 at 2:19 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:
> 
> > Do I need to change some id everytime I add a node?
> > 
> > [2012-05-17 14:17:36,533][INFO][node] [Blaire, Allison]  
> > {0.19.3}[17598]: initializing ...
> > 
> > [2012-05-17 14:17:36,566][INFO][plugins] [Blaire, Allison] loaded  
> > [hadoop], sites [hadoop]
> > 
> > [2012-05-17 14:17:36,580][DEBUG][env] [Blaire, Allison] using node  
> > location [[/root/.mohit/elasticsearch/data/elasticsearch/nodes/0]],  
> > local\_node\_id [0]
> > 
> > ## [2012-05-17 14:17:38,560][INFO][node] [Blaire, Allison] {0.19.3}[17598]: initialized
> > 
> > [2012-05-17 14:26:46,968][INFO][plugins] [Power, Julie] loaded  
> > [hadoop], sites [hadoop]
> > 
> > [2012-05-17 14:26:46,982][DEBUG][env] [Power, Julie] using node location  
> > [[/root/.mohit/elasticsearch/data/elasticsearch/nodes/0]], local\_node\_id [0]
> > 
> > [2012-05-17 14:26:48,992][INFO][node] [Power, Julie] {0.19.3}[15036]:  
> > initialized
> > 
> > On Thu, May 17, 2012 at 12:53 PM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:
> > 
> > > Add "env: DEBUG" to config/logging.yml so it looks like this:
> > > 
> > > rootLogger: INFO, console, file  
> > > logger:
> > > 
> > > - env: DEBUG\*
> > > 
> > > # log action execution errors for easier debugging
> > > 
> > > action: DEBUG
> > > 
> > > Restart the nodes and find the following line in the log files.
> > > 
> > > [2012-05-17 15:47:54,109][DEBUG][env] [Sunset  
> > > Bain] using node location [[....\* /some/path/here\* ...]], local\_node\_id  
> > > [0]
> > > 
> > > Do they point to the same location?
> > > 
> > > On Thursday, May 17, 2012 3:02:11 PM UTC-4, Mo wrote:
> > > 
> > > > I have 2 nodes cluster but under nodes directory I see only one node.  
> > > > It's something like:
> > > > 
> > > > I thought I'll see 0 and 1 since I have 2 nodes in the cluster?
> > > > 
> > > > # ls -ltr nodes/
> > > > 
> > > > total 4
> > > > 
> > > > drwxr-xr-x 3 root root 4096 May 16 17:23 0
> > > > 
> > > > # ls -ltr nodes/0/
> > > > 
> > > > total 4
> > > > 
> > > > -rw-r--r-- 1 root root 0 May 16 17:21 node.lock
> > > > 
> > > > drwxr-xr-x 4 root root 4096 May 17 11:52  
> > > > indices

---

<div class="post-metadata">

**Author:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [May 18, 2012, 5:48pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/7 "2012-05-18T17:48:21Z")

</div>

These nodes are running on 2 separate machines. My question was is it ok to  
see only Node 0? I thought it would have node 0 and 1 dirs.

On Fri, May 18, 2012 at 10:41 AM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:

> So, it looks like they are indeed using the same directory. I guess the  
> question is are these nodes actually running? Could you run
> 
> curl localhost:9200  
> curl localhost:9201
> 
> to see if you have two nodes running on the same machine at the same time.
> 
> What kind of filesystem is /root/.mohit/?
> 
> Could you post your config file?
> 
> On Friday, May 18, 2012 1:09:57 PM UTC-4, Mo wrote:
> 
> > Any suggestions?
> > 
> > On Thu, May 17, 2012 at 2:19 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:
> > 
> > > Do I need to change some id everytime I add a node?
> > > 
> > > [2012-05-17 14:17:36,533][INFO][node] [Blaire, Allison]  
> > > {0.19.3}[17598]: initializing ...
> > > 
> > > [2012-05-17 14:17:36,566][INFO][plugins] [Blaire, Allison] loaded  
> > > [hadoop], sites [hadoop]
> > > 
> > > [2012-05-17 14:17:36,580][DEBUG][env] [Blaire, Allison] using node  
> > > location [[/root/.mohit/elasticsearch/\*\*data/elasticsearch/nodes/0]],  
> > > local\_node\_id [0]
> > > 
> > > ## [2012-05-17 14:17:38,560][INFO][node] [Blaire, Allison] {0.19.3}[17598]: initialized
> > > 
> > > [2012-05-17 14:26:46,968][INFO][plugins] [Power, Julie] loaded  
> > > [hadoop], sites [hadoop]
> > > 
> > > [2012-05-17 14:26:46,982][DEBUG][env] [Power, Julie] using node  
> > > location [[/root/.mohit/elasticsearch/\*\*data/elasticsearch/nodes/0]],  
> > > local\_node\_id [0]
> > > 
> > > [2012-05-17 14:26:48,992][INFO][node] [Power, Julie] {0.19.3}[15036]:  
> > > initialized
> > > 
> > > On Thu, May 17, 2012 at 12:53 PM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:
> > > 
> > > > Add "env: DEBUG" to config/logging.yml so it looks like this:
> > > > 
> > > > rootLogger: INFO, console, file  
> > > > logger:
> > > > 
> > > > - env: DEBUG\*
> > > > 
> > > > # log action execution errors for easier debugging
> > > > 
> > > > action: DEBUG
> > > > 
> > > > Restart the nodes and find the following line in the log files.
> > > > 
> > > > [2012-05-17 15:47:54,109][DEBUG][env] [Sunset  
> > > > Bain] using node location [[....\* /some/path/here\* ...]],  
> > > > local\_node\_id [0]
> > > > 
> > > > Do they point to the same location?
> > > > 
> > > > On Thursday, May 17, 2012 3:02:11 PM UTC-4, Mo wrote:
> > > > 
> > > > > I have 2 nodes cluster but under nodes directory I see only one node.  
> > > > > It's something like:
> > > > > 
> > > > > I thought I'll see 0 and 1 since I have 2 nodes in the cluster?
> > > > > 
> > > > > # ls -ltr nodes/
> > > > > 
> > > > > total 4
> > > > > 
> > > > > drwxr-xr-x 3 root root 4096 May 16 17:23 0
> > > > > 
> > > > > # ls -ltr nodes/0/
> > > > > 
> > > > > total 4
> > > > > 
> > > > > -rw-r--r-- 1 root root 0 May 16 17:21 node.lock
> > > > > 
> > > > > drwxr-xr-x 4 root root 4096 May 17 11:52  
> > > > > indices

---

<div class="post-metadata">

**Author:** ![Igor\_Motov](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/igor_motov/32/45193_2.png) [@Igor\_Motov](https://discuss.elastic.co/u/Igor_Motov)\
**Post date:** [May 18, 2012, 6:07pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/8 "2012-05-18T18:07:09Z")

</div>

Oh, I completely misunderstood your question then. Yes, that's how it  
supposed to be. First node on a machine uses nodes/0, the second node on  
the same machine uses nodes/1 and so on. If you run only one node per  
machine, you should never see nodes/1.

On Friday, May 18, 2012 1:48:21 PM UTC-4, Mo wrote:

> These nodes are running on 2 separate machines. My question was is it ok  
> to see only Node 0? I thought it would have node 0 and 1 dirs.
> 
> On Fri, May 18, 2012 at 10:41 AM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:
> 
> > So, it looks like they are indeed using the same directory. I guess the  
> > question is are these nodes actually running? Could you run
> > 
> > curl localhost:9200  
> > curl localhost:9201
> > 
> > to see if you have two nodes running on the same machine at the same time.
> > 
> > What kind of filesystem is /root/.mohit/?
> > 
> > Could you post your config file?
> > 
> > On Friday, May 18, 2012 1:09:57 PM UTC-4, Mo wrote:
> > 
> > > Any suggestions?
> > > 
> > > On Thu, May 17, 2012 at 2:19 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:
> > > 
> > > > Do I need to change some id everytime I add a node?
> > > > 
> > > > [2012-05-17 14:17:36,533][INFO][node] [Blaire, Allison]  
> > > > {0.19.3}[17598]: initializing ...
> > > > 
> > > > [2012-05-17 14:17:36,566][INFO][plugins] [Blaire, Allison] loaded  
> > > > [hadoop], sites [hadoop]
> > > > 
> > > > [2012-05-17 14:17:36,580][DEBUG][env] [Blaire, Allison] using node  
> > > > location [[/root/.mohit/elasticsearch/\*\*data/elasticsearch/nodes/0]],  
> > > > local\_node\_id [0]
> > > > 
> > > > ## [2012-05-17 14:17:38,560][INFO][node] [Blaire, Allison] {0.19.3}[17598]: initialized
> > > > 
> > > > [2012-05-17 14:26:46,968][INFO][plugins] [Power, Julie] loaded  
> > > > [hadoop], sites [hadoop]
> > > > 
> > > > [2012-05-17 14:26:46,982][DEBUG][env] [Power, Julie] using node  
> > > > location [[/root/.mohit/elasticsearch/\*\*data/elasticsearch/nodes/0]],  
> > > > local\_node\_id [0]
> > > > 
> > > > [2012-05-17 14:26:48,992][INFO][node] [Power, Julie] {0.19.3}[15036]:  
> > > > initialized
> > > > 
> > > > On Thu, May 17, 2012 at 12:53 PM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:
> > > > 
> > > > > Add "env: DEBUG" to config/logging.yml so it looks like this:
> > > > > 
> > > > > rootLogger: INFO, console, file  
> > > > > logger:
> > > > > 
> > > > > - env: DEBUG\*
> > > > > 
> > > > > # log action execution errors for easier debugging
> > > > > 
> > > > > action: DEBUG
> > > > > 
> > > > > Restart the nodes and find the following line in the log files.
> > > > > 
> > > > > [2012-05-17 15:47:54,109][DEBUG][env] [Sunset  
> > > > > Bain] using node location [[....\* /some/path/here\* ...]],  
> > > > > local\_node\_id [0]
> > > > > 
> > > > > Do they point to the same location?
> > > > > 
> > > > > On Thursday, May 17, 2012 3:02:11 PM UTC-4, Mo wrote:
> > > > > 
> > > > > > I have 2 nodes cluster but under nodes directory I see only one node.  
> > > > > > It's something like:
> > > > > > 
> > > > > > I thought I'll see 0 and 1 since I have 2 nodes in the cluster?
> > > > > > 
> > > > > > # ls -ltr nodes/
> > > > > > 
> > > > > > total 4
> > > > > > 
> > > > > > drwxr-xr-x 3 root root 4096 May 16 17:23 0
> > > > > > 
> > > > > > # ls -ltr nodes/0/
> > > > > > 
> > > > > > total 4
> > > > > > 
> > > > > > -rw-r--r-- 1 root root 0 May 16 17:21 node.lock
> > > > > > 
> > > > > > drwxr-xr-x 4 root root 4096 May 17 11:52  
> > > > > > indices

---

<div class="post-metadata">

**Author:** ![Mohit\_Anchlia](https://avatars.discourse-cdn.com/v4/letter/m/848f3c/32.png) [@Mohit\_Anchlia](https://discuss.elastic.co/u/Mohit_Anchlia)\
**Post date:** [May 18, 2012, 7:42pm UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/9 "2012-05-18T19:42:50Z")

</div>

thanks!

On Fri, May 18, 2012 at 11:07 AM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:

> Oh, I completely misunderstood your question then. Yes, that's how it  
> supposed to be. First node on a machine uses nodes/0, the second node on  
> the same machine uses nodes/1 and so on. If you run only one node per  
> machine, you should never see nodes/1.
> 
> On Friday, May 18, 2012 1:48:21 PM UTC-4, Mo wrote:
> 
> > These nodes are running on 2 separate machines. My question was is it ok  
> > to see only Node 0? I thought it would have node 0 and 1 dirs.
> > 
> > On Fri, May 18, 2012 at 10:41 AM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com) wrote:
> > 
> > > So, it looks like they are indeed using the same directory. I guess the  
> > > question is are these nodes actually running? Could you run
> > > 
> > > curl localhost:9200  
> > > curl localhost:9201
> > > 
> > > to see if you have two nodes running on the same machine at the same  
> > > time.
> > > 
> > > What kind of filesystem is /root/.mohit/?
> > > 
> > > Could you post your config file?
> > > 
> > > On Friday, May 18, 2012 1:09:57 PM UTC-4, Mo wrote:
> > > 
> > > > Any suggestions?
> > > > 
> > > > On Thu, May 17, 2012 at 2:19 PM, Mohit Anchlia [mohitanchlia@gmail.com](mailto:mohitanchlia@gmail.com)wrote:
> > > > 
> > > > > Do I need to change some id everytime I add a node?
> > > > > 
> > > > > [2012-05-17 14:17:36,533][INFO][node] [Blaire, Allison]  
> > > > > {0.19.3}[17598]: initializing ...
> > > > > 
> > > > > [2012-05-17 14:17:36,566][INFO][plugins] [Blaire, Allison] loaded  
> > > > > [hadoop], sites [hadoop]
> > > > > 
> > > > > [2012-05-17 14:17:36,580][DEBUG][env] [Blaire, Allison] using node  
> > > > > location [[/root/.mohit/elasticsearch/ **d** ata/elasticsearch/nodes/0]],  
> > > > > local\_node\_id [0]
> > > > > 
> > > > > ## [2012-05-17 14:17:38,560][INFO][node] [Blaire, Allison] {0.19.3}[17598]: initialized
> > > > > 
> > > > > [2012-05-17 14:26:46,968][INFO][plugins] [Power, Julie] loaded  
> > > > > [hadoop], sites [hadoop]
> > > > > 
> > > > > [2012-05-17 14:26:46,982][DEBUG][env] [Power, Julie] using node  
> > > > > location [[/root/.mohit/elasticsearch/ **d** ata/elasticsearch/nodes/0]],  
> > > > > local\_node\_id [0]
> > > > > 
> > > > > [2012-05-17 14:26:48,992][INFO][node] [Power, Julie]  
> > > > > {0.19.3}[15036]: initialized
> > > > > 
> > > > > On Thu, May 17, 2012 at 12:53 PM, Igor Motov [imotov@gmail.com](mailto:imotov@gmail.com)wrote:
> > > > > 
> > > > > > Add "env: DEBUG" to config/logging.yml so it looks like this:
> > > > > > 
> > > > > > rootLogger: INFO, console, file  
> > > > > > logger:
> > > > > > 
> > > > > > - env: DEBUG\*
> > > > > > 
> > > > > > # log action execution errors for easier debugging
> > > > > > 
> > > > > > action: DEBUG
> > > > > > 
> > > > > > Restart the nodes and find the following line in the log files.
> > > > > > 
> > > > > > [2012-05-17 15:47:54,109][DEBUG][env] [Sunset  
> > > > > > Bain] using node location [[....\* /some/path/here\* ...]],  
> > > > > > local\_node\_id [0]
> > > > > > 
> > > > > > Do they point to the same location?
> > > > > > 
> > > > > > On Thursday, May 17, 2012 3:02:11 PM UTC-4, Mo wrote:
> > > > > > 
> > > > > > > I have 2 nodes cluster but under nodes directory I see only one  
> > > > > > > node. It's something like:
> > > > > > > 
> > > > > > > I thought I'll see 0 and 1 since I have 2 nodes in the cluster?
> > > > > > > 
> > > > > > > # ls -ltr nodes/
> > > > > > > 
> > > > > > > total 4
> > > > > > > 
> > > > > > > drwxr-xr-x 3 root root 4096 May 16 17:23 0
> > > > > > > 
> > > > > > > # ls -ltr nodes/0/
> > > > > > > 
> > > > > > > total 4
> > > > > > > 
> > > > > > > -rw-r--r-- 1 root root 0 May 16 17:21 node.lock
> > > > > > > 
> > > > > > > drwxr-xr-x 4 root root 4096 May 17 11:52  
> > > > > > > indices

---

<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 6, 2017, 3:28am UTC](https://discuss.elastic.co/t/2-nodes-but-shows-1-directory/7749/10 "2017-07-06T03:28:10Z")

</div>


