2 nodes but shows 1 directory


(Mohit Anchlia) #1

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


(David Pilato) #2

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 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


(Igor Motov) #3

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


(Mohit Anchlia) #4

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 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


(Mohit Anchlia) #5

Any suggestions?

On Thu, May 17, 2012 at 2:19 PM, Mohit Anchlia mohitanchlia@gmail.comwrote:

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 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


(Igor Motov) #6

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.comwrote:

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 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


(Mohit Anchlia) #7

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 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.comwrote:

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 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


(Igor Motov) #8

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 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.comwrote:

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 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


(Mohit Anchlia) #9

thanks!

On Fri, May 18, 2012 at 11:07 AM, Igor Motov 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 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.comwrote:

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.comwrote:

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


(system) #10