RE: How to restore data from HDFS rm -skipTrash

2017-08-09 Thread Brahma Reddy Battula
: hdfs-dev@hadoop.apache.org Subject: Re: How to restore data from HDFS rm -skipTrash If you stopped the cluster immediately you may have a chance to restore most of the data. It's a manual and hacky process. You can use the Offline Edits Viewer to see the latest edits and cut off the d

Re: How to restore data from HDFS rm -skipTrash

2017-08-04 Thread Konstantin Shvachko
If you stopped the cluster immediately you may have a chance to restore most of the data. It's a manual and hacky process. You can use the Offline Edits Viewer to see the latest edits and cut off the delete transactions that was issues by mistake. Then you can restart the namenode with the modifies

Re: How to restore data from HDFS rm -skipTrash

2017-08-04 Thread Eric Payne
2017 7:57 AM Subject: Re: How to restore data from HDFS rm -skipTrash If the directory has snapshot enabled, the file can be retrieved from the past snapshots. Otherwise, the file inodes are removed from namenode metadata, and blocks are scheduled for deletion. You might want to play with edit log

Re: How to restore data from HDFS rm -skipTrash

2017-08-04 Thread Wei-Chiu Chuang
If the directory has snapshot enabled, the file can be retrieved from the past snapshots. Otherwise, the file inodes are removed from namenode metadata, and blocks are scheduled for deletion. You might want to play with edit log a bit. Remove the delete entries from edit logs. But it's hacky and d