Discussion:
HBASE data been deleted! Please HELP
hua beatls
2017-09-28 12:53:48 UTC
Permalink
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!
anil gupta
2017-09-28 15:10:16 UTC
Permalink
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.
Post by hua beatls
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
Ted Yu
2017-09-28 15:17:23 UTC
Permalink
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.
Post by anil gupta
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.
Post by hua beatls
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
hua beatls
2017-09-28 15:22:10 UTC
Permalink
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.
Post by Ted Yu
If the -skipTrash option is specified, the trash, if enabled, will be
bypassed and the specified file(s) deleted immediately.
Post by anil gupta
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
Post by anil gupta
the user that issued the rmr command.
Post by hua beatls
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
James Moore
2017-09-28 16:35:39 UTC
Permalink
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.
Post by hua beatls
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.
Post by Ted Yu
If the -skipTrash option is specified, the trash, if enabled, will be
bypassed and the specified file(s) deleted immediately.
Post by anil gupta
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
Post by Ted Yu
or
Post by anil gupta
the user that issued the rmr command.
Post by hua beatls
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
Loading...