OfflineImageViewerPB (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.tools.offlineImageViewer, class: OfflineImageViewerPB

Package org.apache.hadoop.hdfs.tools.offlineImageViewer

# Class OfflineImageViewerPB

java.lang.Object
org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewerPB

@Private public class OfflineImageViewerPB extends Object
OfflineImageViewerPB to dump the contents of an Hadoop image file to XML or the console. Main entry point into utility, either via the command line or programmatically.

- ## Field Summary

  Fields
  Modifier and Type
  Field
  Description
  `static final org.slf4j.Logger`
  `LOG`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `OfflineImageViewerPB()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static void`
  `main(String[] args)`
  Entry point to command-line-driven operation.
  `static int`
  `run(String[] args)`

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Field Details

  - ### LOG

    public static final org.slf4j.Logger LOG

- ## Constructor Details

  - ### OfflineImageViewerPB

    public OfflineImageViewerPB()

- ## Method Details

  - ### main

    public static void main(String[] args) throws Exception
    Entry point to command-line-driven operation. User may specify options and start fsimage viewer from the command line. Program will process image file and exit cleanly or, if an error is encountered, inform user and exit.
    Parameters:
      `args` - Command line options
    Throws:
      `IOException`
      `Exception`

  - ### run

    public static int run(String[] args) throws Exception
    Throws:
      `Exception`