Thanks,

I stopped the namenode. How can I remove an entry from the editlog?

FYI: The following action caused the mistake:

I first copied a directory from the DFS to local:
./hadoop dfs -get segments/20070622192310 .

Then, I edited this line (from my command history) to delete the directory:
./hadoop dfs -rmr segments/20070622192310 .

But forgot the dot at the end... :(

Andrzej Bialecki wrote:
Mathijs Homminga wrote:
Oops...

I executed the following command:

./hadoop dfs -rmr .

Everything on the DFS, including the trash seems to be deleted. Is there a way to recover my data?

Depending which version of Hadoop you are running ... In 0.12.x it would be enough to kill -9 the NameNode ASAP, and remove this deletion operation from the editlog, before it gets re-integrated with fsimage.

DO MAKE A BACKUP OF THESE FILES FIRST !!!


--
Knowlogy
Helperpark 290 C
9723 ZA Groningen

[EMAIL PROTECTED]
+31 (0)6 15312977
http://www.knowlogy.nl


Reply via email to