public class FsImageValidation extends 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 and Description |
---|---|
static void |
main(String[] args) |
static void |
validate(File path,
AtomicInteger errorCount) |
static int |
validate(org.apache.hadoop.hdfs.server.namenode.FSNamesystem namesystem) |
public static int validate(org.apache.hadoop.hdfs.server.namenode.FSNamesystem namesystem) throws Exception
Exception
public static void validate(File path, AtomicInteger errorCount) throws Exception
Exception
public static void main(String[] args)
Copyright © 2008–2024 Apache Software Foundation. All rights reserved.