BackupImage (Apache Hadoop HDFS 3.5.0 API)
Description: declaration: package: org.apache.hadoop.hdfs.server.namenode, class: BackupImage

Package org.apache.hadoop.hdfs.server.namenode

# Class BackupImage

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.FSImage
org.apache.hadoop.hdfs.server.namenode.BackupImage

All Implemented Interfaces:
  `Closeable`, `AutoCloseable`

@Private public class BackupImage extends FSImage
Extension of FSImage for the backup node. This class handles the setup of the journaling spool on the backup namenode.

- ## Field Summary

  ### Fields inherited from class org.apache.hadoop.hdfs.server.namenode.FSImage

  `archivalManager, editLog, lastAppliedTxId, LOG, SHUTDOWN_HOOK_PRIORITY, storage`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `close()`
  Override close() so that we don't finalize edit logs.

  ### Methods inherited from class org.apache.hadoop.hdfs.server.namenode.FSImage

  `addToCheckpointing, checkUpgrade, getBlockPoolID, getClusterID, getCorrectLastAppliedOrWrittenTxId, getEditLog, getLastAppliedOrWrittenTxId, getLastAppliedTxId, getLayoutVersion, getMostRecentCheckpointTxId, getMostRecentNameNodeFileTxId, getNamespaceID, getStorage, hasRollbackFSImage, initEditLog, loadEdits, loadEdits, recoverStorageDirs, removeFromCheckpointing, saveDigestAndRenameCheckpointImage, saveFSImageInAllDirs, saveLegacyOIVImage, saveNamespace, saveNamespace, saveNamespace, updateLastAppliedTxIdFromWritten, updateStorageVersion`

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

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

- ## Method Details

  - ### close

    public void close() throws IOException
    Override close() so that we don't finalize edit logs.
    Specified by:
      `close` in interface `AutoCloseable`
    Specified by:
      `close` in interface `Closeable`
    Overrides:
      `close` in class `FSImage`
    Throws:
      `IOException`