Site icon TechVidvan

What is NameNode Automatic Failover in Hadoop HDFS?

Automatic Failover in Hadoop

In this Hadoop tutorial, we are going to discuss the concept of NameNode Automatic Failover in Hadoop  First of all, we will see what is failover and types of failover. Then we will cover HDFS automatic failover in Hadoop.

Components of Hadoop Automatic Failover in HDFS such as ZooKeeper quorum, ZKFailoverController Process (ZKFC). At last, we will also discuss the roles of these two components in Hadoop.

What is Failover?

The process in which system transfers its control to the secondary system when it detects a failure is known as failover.

Failover is of two types:

NameNode Automatic Failover in Hadoop

Automatic failover in Hadoop adds up below components to a Hadoop HDFS deployment:

1. ZooKeeper Quorum

Zookeeper in Hadoop is a centralized service. It maintains configuration information, naming, and provide distributed synchronization. It also provides group services. Zookeeper also manages and coordinates a large cluster of machines.

For the below reasons, implementation of automatic HDFS failover relies on Zookeeper:

2. ZKFailoverController (ZKFC)

ZKFC is a client of Zookeeper in Hadoop that monitors and manages the namenode status. Each of the machines which run namenode service also runs a ZKFS. It can handle:

Conclusion

Hence, Automatic Failover in Hadoop starts automatically in case of NameNode failure. Automatic failover adds ZooKeeper quorum and ZKFailoverController Process (ZKFC) components to an HDFS deployment.

Zookeeper in Hadoop is a service that provides the automatic failover capability in HDFS.

Exit mobile version