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 beatlsstep 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 YuIf the -skipTrash option is specified, the trash, if enabled, will be
bypassed and the specified file(s) deleted immediately.
Post by anil guptaAFAIK, 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 Yuor
Post by anil guptathe user that issued the rmr command.
Post by hua beatlsHello, 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