Class BackupNode

java.lang.Object
org.apache.hadoop.conf.Configured
org.apache.hadoop.conf.ReconfigurableBase
org.apache.hadoop.hdfs.server.namenode.NameNode
org.apache.hadoop.hdfs.server.namenode.BackupNode
All Implemented Interfaces:
org.apache.hadoop.conf.Configurable, org.apache.hadoop.conf.Reconfigurable, TokenVerifier<org.apache.hadoop.hdfs.security.token.delegation.DelegationTokenIdentifier>, NameNodeStatusMXBean

@Private @Metrics(context="dfs") public class BackupNode extends NameNode
BackupNode.

Backup node can play two roles.

  1. HdfsServerConstants.NamenodeRole.CHECKPOINT node periodically creates checkpoints, that is downloads image and edits from the active node, merges them, and uploads the new image back to the active.
  2. HdfsServerConstants.NamenodeRole.BACKUP node keeps its namespace in sync with the active node, and periodically creates checkpoints by simply saving the namespace image to local disk(s).