While this is an exotic situation and may not have a solution,  there is
some guidance from hortonworks on manually editing the transaction log on
the namenode to enable data recovery.
https://community.hortonworks.com/articles/26181/how-to-recover-accidentally-deleted-file-in-hdfs.html

if you're able to restore the blocks on the data nodes and undo the delete
from the name node the data should be recoverable.

On Thu, Sep 28, 2017 at 11:22 AM, hua beatls <[email protected]> wrote:

> we have a plan:
>  step 1: recover fsimage with ext4magic ( a small tool to recovery
> files/directory on linux platform) on namenode;
> step 2: recover data on every datanode
> step3: start hdfs/hbase;
>
> is the way work?
>
> Thanks in advance.
>
> On Thu, Sep 28, 2017 at 11:17 PM, Ted Yu <[email protected]> wrote:
>
> > From https://hadoop.apache.org/docs/r1.0.4/file_system_shell.html :
> >
> > If the -skipTrash option is specified, the trash, if enabled, will be
> > bypassed and the specified file(s) deleted immediately.
> >
> > On Thu, Sep 28, 2017 at 8:10 AM, anil gupta <[email protected]>
> wrote:
> >
> > > AFAIK, in order to recover data, user has to react within minutes or
> > > seconds.  But, have you checked ".Trash" folder in hdfs under hbase
> user
> > or
> > > the user that issued the rmr command.
> > >
> > >
> > >
> > >
> > > On Thu, Sep 28, 2017 at 5:53 AM, hua beatls <[email protected]> wrote:
> > >
> > > > Hello, I have a big problem!!!!
> > > > We deleted hbase data with " hdfs dfs -rmr -skipTrash /hbase",
> > > >
> > > > Is there any way to recovery the deleted date?
> > > >
> > > > Thanks a lot!
> > > >
> > >
> > >
> > >
> > > --
> > > Thanks & Regards,
> > > Anil Gupta
> > >
> >
>

Reply via email to