You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by hua beatls <be...@gmail.com> on 2017/09/28 12:53:48 UTC

HBASE data been deleted! Please HELP

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!

Re: HBASE data been deleted! Please HELP

Posted by James Moore <jc...@hubspot.com>.
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 <be...@gmail.com> 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 <yu...@gmail.com> 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 <an...@gmail.com>
> 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 <be...@gmail.com> 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
> > >
> >
>

Re: HBASE data been deleted! Please HELP

Posted by hua beatls <be...@gmail.com>.
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 <yu...@gmail.com> 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 <an...@gmail.com> 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 <be...@gmail.com> 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
> >
>

Re: HBASE data been deleted! Please HELP

Posted by Ted Yu <yu...@gmail.com>.
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 <an...@gmail.com> 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 <be...@gmail.com> 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
>

Re: HBASE data been deleted! Please HELP

Posted by anil gupta <an...@gmail.com>.
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 <be...@gmail.com> 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