You are viewing a plain text version of this content. The canonical link for it is here.
Posted to mapreduce-user@hadoop.apache.org by alex bohr <al...@gmail.com> on 2013/09/13 20:56:08 UTC

fsck -move is copying not moving

I have some corrupt blocks that I want to move to lost+found and work on
recovering from the good blocks.

So I ran
hadoop fsck  /my/bad/filepath -move

And it copied a bunch of files to lost+found/my/bad/filepath.  But the
corrupt files are still at  /my/bad/filepath.

Is that expected?  I thought fsck should Move not Copy the corrupt files.

... I then ran fsck  /my/bad/filepath -delete and it deleted the bad file
so it's all fine, but that seems unnecessary.

I'm on CDH3u5.

Thanks

Re: fsck -move is copying not moving

Posted by Harsh J <ha...@cloudera.com>.
Hi,

The -move will move any existing good blocks (salvaging the file's
remains) under the specified file, to /lost+found/. This is regular
behavior. To get rid of a corrupt file entirely, a -delete or an -rm
-skipTrash is normally required.

On Sat, Sep 14, 2013 at 12:26 AM, alex bohr <al...@gmail.com> wrote:
> I have some corrupt blocks that I want to move to lost+found and work on
> recovering from the good blocks.
>
> So I ran
> hadoop fsck  /my/bad/filepath -move
>
> And it copied a bunch of files to lost+found/my/bad/filepath.  But the
> corrupt files are still at  /my/bad/filepath.
>
> Is that expected?  I thought fsck should Move not Copy the corrupt files.
>
> ... I then ran fsck  /my/bad/filepath -delete and it deleted the bad file so
> it's all fine, but that seems unnecessary.
>
> I'm on CDH3u5.
>
> Thanks



-- 
Harsh J

Re: fsck -move is copying not moving

Posted by Harsh J <ha...@cloudera.com>.
Hi,

The -move will move any existing good blocks (salvaging the file's
remains) under the specified file, to /lost+found/. This is regular
behavior. To get rid of a corrupt file entirely, a -delete or an -rm
-skipTrash is normally required.

On Sat, Sep 14, 2013 at 12:26 AM, alex bohr <al...@gmail.com> wrote:
> I have some corrupt blocks that I want to move to lost+found and work on
> recovering from the good blocks.
>
> So I ran
> hadoop fsck  /my/bad/filepath -move
>
> And it copied a bunch of files to lost+found/my/bad/filepath.  But the
> corrupt files are still at  /my/bad/filepath.
>
> Is that expected?  I thought fsck should Move not Copy the corrupt files.
>
> ... I then ran fsck  /my/bad/filepath -delete and it deleted the bad file so
> it's all fine, but that seems unnecessary.
>
> I'm on CDH3u5.
>
> Thanks



-- 
Harsh J

Re: fsck -move is copying not moving

Posted by Harsh J <ha...@cloudera.com>.
Hi,

The -move will move any existing good blocks (salvaging the file's
remains) under the specified file, to /lost+found/. This is regular
behavior. To get rid of a corrupt file entirely, a -delete or an -rm
-skipTrash is normally required.

On Sat, Sep 14, 2013 at 12:26 AM, alex bohr <al...@gmail.com> wrote:
> I have some corrupt blocks that I want to move to lost+found and work on
> recovering from the good blocks.
>
> So I ran
> hadoop fsck  /my/bad/filepath -move
>
> And it copied a bunch of files to lost+found/my/bad/filepath.  But the
> corrupt files are still at  /my/bad/filepath.
>
> Is that expected?  I thought fsck should Move not Copy the corrupt files.
>
> ... I then ran fsck  /my/bad/filepath -delete and it deleted the bad file so
> it's all fine, but that seems unnecessary.
>
> I'm on CDH3u5.
>
> Thanks



-- 
Harsh J

Re: fsck -move is copying not moving

Posted by Harsh J <ha...@cloudera.com>.
Hi,

The -move will move any existing good blocks (salvaging the file's
remains) under the specified file, to /lost+found/. This is regular
behavior. To get rid of a corrupt file entirely, a -delete or an -rm
-skipTrash is normally required.

On Sat, Sep 14, 2013 at 12:26 AM, alex bohr <al...@gmail.com> wrote:
> I have some corrupt blocks that I want to move to lost+found and work on
> recovering from the good blocks.
>
> So I ran
> hadoop fsck  /my/bad/filepath -move
>
> And it copied a bunch of files to lost+found/my/bad/filepath.  But the
> corrupt files are still at  /my/bad/filepath.
>
> Is that expected?  I thought fsck should Move not Copy the corrupt files.
>
> ... I then ran fsck  /my/bad/filepath -delete and it deleted the bad file so
> it's all fine, but that seems unnecessary.
>
> I'm on CDH3u5.
>
> Thanks



-- 
Harsh J