I think Raymond says that the machine is already dead...

At this point, you can just remove it from <em>dfs.hosts</em> list and let
HDFS to restore the lost blocks...

But before that, if you have the disks intact, you can stop HDFS and
manually copy the blocks together with their CRC from the dead machine's
<em>dfs.data.dir</em> to existing machines.  The copied blocks will be found
and recognized by the HDFS on restart.

Alex K

On Fri, Apr 23, 2010 at 11:31 AM, Allen Wittenauer <[email protected]
> wrote:

>
> On Apr 23, 2010, at 10:48 AM, Raymond Jennings III wrote:
>
> > I've got a dead machine on my cluster.  I want to safely update HDFS so
> that nothing references this machine then I want to rebuild it and put it
> back in service in the cluster.
> >
> > Does anyone have any pointers how to do this (the first part - updating
> HDFS so that it's no longer referenced.)
>
> 1. Add node to dfs.exclude
> 2. hadoop dfsadmin -refreshNodes
>
> That will start the decommissioning process.
>
> When you want to add it back in, remove it from dfs.excluce and re-run
> refreshnodes.

Reply via email to