You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by "Zhou, Yunqing" <az...@gmail.com> on 2008/11/13 10:06:00 UTC

How to exclude machines from a cluster

Here is a cluster with 13 machines. And due to the lack of storage
space, we set the replication factor to 1.
but recently we found 2 machines in the cluster are not stable. so I'd
like to exclude them from the cluster.
but I can't simply set the replication factor to 1 and remove them due
to the large amount of data.
so is there a way I can force hadoop to move the block stored on them
to other machines?

Thanks.

Re: How to exclude machines from a cluster

Posted by "David B. Ritch" <da...@gmail.com>.
You should be able to do this using the decommission feature:
http://wiki.apache.org/hadoop/FAQ#17.

David

Zhou, Yunqing wrote:
> Here is a cluster with 13 machines. And due to the lack of storage
> space, we set the replication factor to 1.
> but recently we found 2 machines in the cluster are not stable. so I'd
> like to exclude them from the cluster.
> but I can't simply set the replication factor to 1 and remove them due
> to the large amount of data.
> so is there a way I can force hadoop to move the block stored on them
> to other machines?
>
> Thanks.
>
>   


Re: How to exclude machines from a cluster

Posted by lohit <lo...@yahoo.com>.
Hi,

You could try to decommission the node. More information is provided here http://wiki.apache.org/hadoop/FAQ#17
When you request the NN to decommission a node, it tries to replicate all the blocks on that node to different node. 

PS : 1 replica is always at risk of losing data, try atleast two, may be having the files compressed might help.

Lohit


----- Original Message ----
From: "Zhou, Yunqing" <az...@gmail.com>
To: core-user@hadoop.apache.org
Sent: Thursday, November 13, 2008 1:06:00 AM
Subject: How to exclude machines from a cluster

Here is a cluster with 13 machines. And due to the lack of storage
space, we set the replication factor to 1.
but recently we found 2 machines in the cluster are not stable. so I'd
like to exclude them from the cluster.
but I can't simply set the replication factor to 1 and remove them due
to the large amount of data.
so is there a way I can force hadoop to move the block stored on them
to other machines?

Thanks.