What are the main functions of Secondary NameNode?

Main functions of Secondary NameNode are as follows:

  • FsImage: It stores a copy of FsImage file and EditLog.
  • NameNode crash: In case NameNode crashes, we can use Secondary NameNode’s FsImage to recreate the NameNode.
  • Checkpoint: Secondary NameNode runs Checkpoint to confirm that data is not corrupt in HDFS.
  • Update: It periodically applies the updates from EditLog to FsImage file. In this way FsImage file on Secondary NameNode is kept up to date. This helps in saving time during NameNode restart.
Read the full book at www.amazon.com
Posted in Hadoop, Hadoop Interview Questions

Leave a Reply

Your email address will not be published. Required fields are marked *