public class FsImageValidation
extends java.lang.Object
FSImage.
This tool will load the user specified FSImage,
build the namespace tree,
and then run validations over the namespace tree.
The main difference of this tool and
OfflineImageViewer
is that
OfflineImageViewer
only loads FSImage but it does not build the namespace tree.
Therefore, running validations over the namespace tree is impossible in
OfflineImageViewer.| Modifier and Type | Method | Description |
|---|---|---|
static void |
main(java.lang.String[] args) |
|
static void |
validate(java.io.File path,
java.util.concurrent.atomic.AtomicInteger errorCount) |
|
static int |
validate(FSNamesystem namesystem) |
public static int validate(FSNamesystem namesystem) throws java.lang.Exception
java.lang.Exceptionpublic static void validate(java.io.File path,
java.util.concurrent.atomic.AtomicInteger errorCount)
throws java.lang.Exception
java.lang.Exceptionpublic static void main(java.lang.String[] args)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.