Class FileSystemImage

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.FileSystemImage
All Implemented Interfaces:
Configurable, Tool

@Public @Unstable public class FileSystemImage extends Object implements Tool
Create FSImage from an external namespace.
  • Constructor Details

    • FileSystemImage

      public FileSystemImage()
  • Method Details

    • getConf

      public Configuration getConf()
      Description copied from interface: Configurable
      Return the configuration used by this object.
      Specified by:
      getConf in interface Configurable
      Returns:
      Configuration
    • setConf

      public void setConf(Configuration conf)
      Description copied from interface: Configurable
      Set the configuration to be used by this object.
      Specified by:
      setConf in interface Configurable
      Parameters:
      conf - configuration to be used
    • printUsage

      protected void printUsage()
    • run

      public int run(String[] argv) throws Exception
      Description copied from interface: Tool
      Execute the command with the given arguments.
      Specified by:
      run in interface Tool
      Parameters:
      argv - command specific arguments.
      Returns:
      exit code.
      Throws:
      Exception - command exception.
    • main

      public static void main(String[] argv) throws Exception
      Throws:
      Exception