Yellow health status creating shards

We are running a 2 node Elasticsearch 0.16.2 cluster in embedded mode
and tried to create an index similar to

curl -XPUT 'http://localhost:9200/socorro/' -d '

index :
number_of_shards : 3
number_of_replicas : 2
'

The response is "ok", however, the health API continues to show status
as "yellow"

curl -XGET http://localhost:9200/_cluster/health

{"cluster_name":"socorro","status":"yellow","timed_out":false,"number_of_nodes":2,"number_of_data_nodes":2,"active_primary_shards":3,"active_shards":6,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":3}

Any idea what might be going wrong here?

-anurag

because your set index repica is 2,but you just have only 2 nodes,so
if you start another node,you will have "green".

--medcl

-----Original Message-----
From: Anurag
Sent: Friday, June 24, 2011 11:25 AM
To: users@elasticsearch.com
Subject: yellow health status creating shards

We are running a 2 node Elasticsearch 0.16.2 cluster in embedded mode
and tried to create an index similar to

curl -XPUT 'http://localhost:9200/socorro/' -d '

index :
number_of_shards : 3
number_of_replicas : 2
'

The response is "ok", however, the health API continues to show status
as "yellow"

curl -XGET http://localhost:9200/_cluster/health

{"cluster_name":"socorro","status":"yellow","timed_out":false,"number_of_nodes":2,"number_of_data_nodes":2,"active_primary_shards":3,"active_shards":6,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":3}

Any idea what might be going wrong here?

-anurag

thx, that wrked..

On Thu, Jun 23, 2011 at 8:40 PM, medcl2000@gmail.com wrote:

because your set index repica is 2,but you just have only 2 nodes,so
if you start another node,you will have "green".

--medcl

-----Original Message----- From: Anurag
Sent: Friday, June 24, 2011 11:25 AM
To: users@elasticsearch.com
Subject: yellow health status creating shards

We are running a 2 node Elasticsearch 0.16.2 cluster in embedded mode
and tried to create an index similar to
Elasticsearch Platform — Find real-time answers at scale | Elastic

curl -XPUT 'http://localhost:9200/socorro/' -d '

index :
number_of_shards : 3
number_of_replicas : 2
'

The response is "ok", however, the health API continues to show status
as "yellow"

curl -XGET http://localhost:9200/_cluster/health

{"cluster_name":"socorro","status":"yellow","timed_out":false,"number_of_nodes":2,"number_of_data_nodes":2,"active_primary_shards":3,"active_shards":6,"relocating_shards":0,"initializing_shards":0,"unassigned_shards":3}

Any idea what might be going wrong here?

-anurag