Org.elasticsearch.action.UnavailableShardsException

Hi,
Before doing any configuration my example was eorking well.
I configured my elasticsearch.yml as follows:

node:
data: true
index :
number_of_shards : 3
number_of_replicas : 2

I am getting the following error:

Exception in thread "main"
org.elasticsearch.action.UnavailableShardsException: [_river][0] [3]
shardIt, [0] active : Timeout waiting for [1m],

request: index {[_river][test][_meta], source[{"type":"rabbitmq"}]}
at

org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
$AsyncShardOperationAction$4.onTimeout(TransportS

hardReplicationOperationAction.java:401)
at org.elasticsearch.cluster.service.InternalClusterService
$NotifyTimeout.run(InternalClusterService.java:269)
at org.elasticsearch.timer.TimerService$ThreadedTimerTask
$1.run(TimerService.java:113)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Java Result: 1

even after removing all the settings from the elasticsearch.yml file
and restarting the server I am getting the same error.
Does it persists the previous setting?
And what may the reason for this error?

Thanks

Thats probably because you start a single node. If you set the
number_of_replicas to 2, then after a full restart, the indices won't be
recovered (in the default local gateway) because a quorom of shards have not
been discovered yet (it will want to find 2 shards out of the 3 (1 + 2
replica) ).

On Fri, Jan 7, 2011 at 8:59 AM, cheepu cheeputech@gmail.com wrote:

Hi,
Before doing any configuration my example was eorking well.
I configured my elasticsearch.yml as follows:

node:
data: true
index :
number_of_shards : 3
number_of_replicas : 2

I am getting the following error:

Exception in thread "main"
org.elasticsearch.action.UnavailableShardsException: [_river][0] [3]
shardIt, [0] active : Timeout waiting for [1m],

request: index {[_river][test][_meta], source[{"type":"rabbitmq"}]}
at

org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction
$AsyncShardOperationAction$4.onTimeout(TransportS

hardReplicationOperationAction.java:401)
at org.elasticsearch.cluster.service.InternalClusterService
$NotifyTimeout.run(InternalClusterService.java:269)
at org.elasticsearch.timer.TimerService$ThreadedTimerTask
$1.run(TimerService.java:113)
at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
Java Result: 1

even after removing all the settings from the elasticsearch.yml file
and restarting the server I am getting the same error.
Does it persists the previous setting?
And what may the reason for this error?

Thanks