Skip to main content
shrikant_bm
Gold ⭐️
July 5, 2020
Solved

HA Fails when Namenode server rebooted

HI Team,

 

I came across an scenario where HA failed when active namenode server was rebooted.

Accidentally the master node which runs active namenode got rebooted.

when it got rebooted i believed the standby namenode will become active namenode and will continue the operations but standby namenode did not became active and HDFS was completely down.

So my question is

1. When active namenode server is rebooted will the standby namenode will not become active? Is this something expected? Or Did the HA did not work in our cluster

2. Whether the HA is expected to work only between the active and standby namenode daemons?

 

Thanking in Advance!!

Madhur
MadhurAnswer
Gold ⭐️
July 7, 2020

Hi @shrikant_bm ,

 

When ever Active NameNode server goes down, its associated daemon also goes down. HA works in the same way whenever Active NameNode daemon or server goes down. ZKFC will not receive the heartbeat and the ZooKeeper session will expire, notifying the other NameNode that a failover should be triggered.

 

To answer your question: yes, in both the cases mentioned by you, HA should work.

Madhuri Adipudi, Technical Solutions Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button. Learn more about the Cloudera Community: - Community Guidelines - How to use the forum (“/t5/help/faqpage”)

5 replies

Madhur
Gold ⭐️
Gold ⭐️
July 6, 2020

Hi @shrikant_bm ,

 

Thank you for reaching out to community! 

If NameNode high availability is enabled and configured on your cluster. Automatic failover of active NameNode should work.

[1] Give us steps on configuring NN high availability using Ambari.

https://docs.cloudera.com/HDPDocuments/Ambari-2.7.5.0/managing-high-availability/content/amb_enable_namenode_high_availability.html

[2] Gives us steps on Managing High Availability of Services for other components.

https://docs.cloudera.com/HDPDocuments/Ambari-2.7.5.0/managing-high-availability/content/amb_managing_high_availability_of_services.html

 

 

Translate
Madhuri Adipudi, Technical Solutions Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button. Learn more about the Cloudera Community: - Community Guidelines - How to use the forum (“/t5/help/faqpage”)
shrikant_bm
Gold ⭐️
July 6, 2020

@Madhur : Thanks for the update!!

Thanks for sharing links.

But I am looking for answers for my below questions

1. When active namenode server is rebooted will the standby namenode will not become active? Is this something expected? Or Did the HA did not work in our cluster

2. Whether the HA is expected to work only between the active and standby namenode daemons?

Translate
Madhur
Gold ⭐️
MadhurAnswer
Gold ⭐️
July 7, 2020

Hi @shrikant_bm ,

 

When ever Active NameNode server goes down, its associated daemon also goes down. HA works in the same way whenever Active NameNode daemon or server goes down. ZKFC will not receive the heartbeat and the ZooKeeper session will expire, notifying the other NameNode that a failover should be triggered.

 

To answer your question: yes, in both the cases mentioned by you, HA should work.

Translate
Madhuri Adipudi, Technical Solutions Manager Was your question answered? Make sure to mark the answer as the accepted solution. If you find a reply useful, say thanks by clicking on the thumbs up button. Learn more about the Cloudera Community: - Community Guidelines - How to use the forum (“/t5/help/faqpage”)