page 312 of Tom White's "Hadoop: The Definitive Guide" mentions that the
Offline Image Viewer supplied with 0.21.0 can be used to test the integrity
of any backups taken from the Secondary Namenode (previous.checkpoint)
How does this work in practice?
I've tested the tool on a valid fsimage file and a dummy file and I find
that the only difference is that the output is a file of non-zero size if
successful, and a zero-size file if there is a failure (as well as the
message "Input file ended unexpectedly. Exiting").
The documentation (
explicitly say how to verify fsimage integrity but I assume that the tool
completing without encountering an error is enough to prove that the image
is valid. It does say "If the tool is not able to process an image file, it
will exit cleanly" - but this is not of much use for automated backups.
Since this is going to be a common use-case for the Offline Image Viewer, I
suggest that the documentation is updated to specifically state how to check
for a valid image (eg during an automated backup process).
So, can anyone confirm how the Offline Image Viewer is used to verify the
integrity of a fsimage file?