Class SecondaryNameNode

java.lang.Object
org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode
All Implemented Interfaces:
Runnable, SecondaryNameNodeInfoMXBean, VersionInfoMXBean

@Private public class SecondaryNameNode extends Object implements Runnable, SecondaryNameNodeInfoMXBean
The Secondary NameNode is a helper to the primary NameNode. The Secondary is responsible for supporting periodic checkpoints of the HDFS metadata. The current design allows only one Secondary NameNode per HDFs cluster. The Secondary NameNode is a daemon that periodically wakes up (determined by the schedule specified in the configuration), triggers a periodic checkpoint and then goes back to sleep. The Secondary NameNode uses the NamenodeProtocol to talk to the primary NameNode.
  • Field Details

    • LOG

      public static final org.slf4j.Logger LOG
  • Constructor Details

    • SecondaryNameNode

      public SecondaryNameNode(org.apache.hadoop.conf.Configuration conf) throws IOException
      Create a connection to the primary namenode.
      Throws:
      IOException
    • SecondaryNameNode

      public SecondaryNameNode(org.apache.hadoop.conf.Configuration conf, org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.CommandLineOpts commandLineOpts) throws IOException
      Throws:
      IOException
  • Method Details