FAQ

fsimage=/var/lib/hadoop/dfs/name/current/fsimage
cp $fsimage{,~}
size=$(stat -c %s $fsimage)
dd if=$fsimage~ of=$fsimage bs=$[size-16] count=1
What was the size of the file (before you chopped off the 0s)? What
filesystem is your fsimage stored on, and what kernel are you running?
Hi Andy,

I actually hit this on three different HDFS filesystems, but I most recently
did it on a minimal FS in qemu with these specs:

-rw-r--r-- 1 bob bob 4463 Dec 19 17:19 fsimage
/dev/sda1 on / type ext4 (rw,errors=remount-ro)
Linux ubuntu 3.2.0-34-generic #53-Ubuntu SMP Thu Nov 15 10:48:16 UTC 2012
x86_64 x86_64 x86_64 GNU/Linux
(Ubuntu 12.04.1)

Interestingly, it seems doing "hdfs dfsadmin -saveNamespace" on the old
image
might figure in, since I have an image prior to doing that which upgraded
fine.

--
Bob Copeland %% www.bobcopeland.com

--

Search Discussions

Discussion Posts

Previous

Follow ups

Related Discussions

Discussion Navigation
viewthread | post
posts ‹ prev | 4 of 5 | next ›
Discussion Overview
groupcdh-user @
categorieshadoop
postedDec 19, '12 at 5:16p
activeDec 21, '12 at 2:01p
posts5
users4
websitecloudera.com
irc#hadoop

People

Translate

site design / logo © 2018 Grokbase