Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Removing Secondary Named Node in Ambari 2.6.2 wizard

avatar
Cloudera Employee

Is there a way of creating a non-HA cluster in Ambari 2.6.2 using the wizard? Specifically, for 1-4 node clusters, a way of removing the SName node from the cluster, during the Assign Masters step?

1 ACCEPTED SOLUTION

avatar
Master Mentor

@Steve Kiaie

A simple answer is NO you cannot remove the SNN in a non NameNode HA setup reasons below:
Secondary NameNode(SNN) and Standby NameNode are mutually exclusive,enabling HA is not mandatory. But, when it is enabled, you can't use Secondary Namenode. So, either Secondary Namenode is enabled OR Standby Namenode is enabled.

Secondary NameNode downloads the FsImage and EditLogs from the NameNode and then it merges EditLogs with the Fsimage periodically. It keeps edits log size within a limit. After that, it stores the modified FsImage into persistent storage. So we can use FsImage in case of NameNode failure.

Secondary namenode is just a helper for Namenode.

  • It gets the edit logs from the namenode in regular intervals and applies to fsimage.
  • Once it has new fsimage, it copies back to namenode.
  • Namenode will use this fsimage for the next restart, which will reduce the startup time.
  • Secondary Namenode's whole purpose is to have a checkpoint in HDFS. Its just a helper node for namenode.

That’s why it also known also as checkpoint node,But, It can't replace namenode on namenode's failure.NameNode is single point of Failure (SPOF). If namenode fails, all clients would unable to read/write files. In such event, whole cluster will be out of service until new namenode is up.

The standby namenode provides automatic failover in case Active Namenode (can be simply called 'Namenode' if HA is not enabled) fails.You need a Zookeeper cluster (quorum of 3) to add a Standby namenode hence enabling NameNode HA To overcome this issue;

Standby NameNode comes into picture. It does three things:

  • Merging fsimage and edits-log files. (Secondary-namenode's work).
  • Receive online updates of the file system meta-data using journalnoodes.
  • Apply the changes to its memory state and persist them on disks just like the name-node does.

Thus at any time the Backup node contains an up-to-date image of the namespace both in memory and on local disk(s). Cluster will switch over to the new name-node (this standby-node) if the active namenode dies High availability feature provides an extra NameNode to hadoop architecture,this feature provides automatic failover. If active NameNode fails, then standby-Namenode takes all the responsibility of active node. And cluster continues to work.

I have attached 2 visuals to help you understand

HTH


secondarynn.jpgstandbynn.jpg

View solution in original post

2 REPLIES 2

avatar
Master Mentor

@Steve Kiaie

A simple answer is NO you cannot remove the SNN in a non NameNode HA setup reasons below:
Secondary NameNode(SNN) and Standby NameNode are mutually exclusive,enabling HA is not mandatory. But, when it is enabled, you can't use Secondary Namenode. So, either Secondary Namenode is enabled OR Standby Namenode is enabled.

Secondary NameNode downloads the FsImage and EditLogs from the NameNode and then it merges EditLogs with the Fsimage periodically. It keeps edits log size within a limit. After that, it stores the modified FsImage into persistent storage. So we can use FsImage in case of NameNode failure.

Secondary namenode is just a helper for Namenode.

  • It gets the edit logs from the namenode in regular intervals and applies to fsimage.
  • Once it has new fsimage, it copies back to namenode.
  • Namenode will use this fsimage for the next restart, which will reduce the startup time.
  • Secondary Namenode's whole purpose is to have a checkpoint in HDFS. Its just a helper node for namenode.

That’s why it also known also as checkpoint node,But, It can't replace namenode on namenode's failure.NameNode is single point of Failure (SPOF). If namenode fails, all clients would unable to read/write files. In such event, whole cluster will be out of service until new namenode is up.

The standby namenode provides automatic failover in case Active Namenode (can be simply called 'Namenode' if HA is not enabled) fails.You need a Zookeeper cluster (quorum of 3) to add a Standby namenode hence enabling NameNode HA To overcome this issue;

Standby NameNode comes into picture. It does three things:

  • Merging fsimage and edits-log files. (Secondary-namenode's work).
  • Receive online updates of the file system meta-data using journalnoodes.
  • Apply the changes to its memory state and persist them on disks just like the name-node does.

Thus at any time the Backup node contains an up-to-date image of the namespace both in memory and on local disk(s). Cluster will switch over to the new name-node (this standby-node) if the active namenode dies High availability feature provides an extra NameNode to hadoop architecture,this feature provides automatic failover. If active NameNode fails, then standby-Namenode takes all the responsibility of active node. And cluster continues to work.

I have attached 2 visuals to help you understand

HTH


secondarynn.jpgstandbynn.jpg

avatar
Cloudera Employee

Thanks for the detailed response Geoffrey. This is very helpful.