How does a name-node understand by itself that it is facing a failure?

0 votes
how does it come to know its own failure?

is there a code snippet which takes care of it?

to whom does it send its heart-beat?
Mar 27 in Big Data Hadoop by ravi
• 220 points
60 views

1 answer to this question.

0 votes

ZooKeeper-Failover-Controller or in short ZKFC is the new component which also acts as a client for ZooKeeper is the one which monitors and manages the state of the Namenode. Each of the machines which run Namenode also runs the ZKFC.

The ZKFC is responsible for:

1. Health Monitoring: Similar to heart-beat, ZKFC also sends a signal to Namenode. If the Namenode responds, then it is stable. if it is unable to respond due to any issues like frozen or struck, then ZKFC considers the Namenode to be dead.

2. ZooKeeper session management: If the local node is healthy, then the zookeeper holds the "lock" Znode. this lock uses ZooKeeper's support for "ephemeral" nodes. This lock node gets expired or killed when the session is expired.

3. ZooKeeper-based election: In case if the local name node is healthy and ZKFC observes no other node is holding the lock znode, then it automatically acquire the lock. If it succeeds, then it means it won the elections and if not then it is responsible for running failover to make its local name node active.

Image result for automatic failover architecture

answered Mar 27 by nitinrawat895
• 10,030 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Unable to run Name node and datanode on Single Node cluster: Does not contain a valid host:port

Add the following properties in the core-site.xml file, it ...READ MORE

answered May 22 in Big Data Hadoop by Sanam
17 views
0 votes
1 answer

Mention how many InputSplits is made by a Hadoop Framework?

Hey, Hadoop will make 5 splits 1 split for ...READ MORE

answered Jun 10 in Big Data Hadoop by Gitika
• 19,720 points
21 views
0 votes
1 answer

What is Shared Edit Logs in case of Stand By Name Node in Hadoop 2.x?

Yes, Shared Edit Logs exist in case ...READ MORE

answered Jun 19 in Big Data Hadoop by Hansini
17 views
0 votes
1 answer

How to install and configure a multi-node Hadoop cluster?

I would recommend you to install Cent ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by Shubham
• 13,110 points
540 views
0 votes
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,030 points
2,026 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 10,030 points
188 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
10,235 views
0 votes
1 answer

Hadoop dfs -ls command?

In your case there is no difference ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by kurt_cobain
• 9,240 points
751 views
0 votes
1 answer

How to create a FileSystem object that can be used for reading from and writing to HDFS?

Read operation on HDFS In order to read ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by nitinrawat895
• 10,030 points

edited Mar 21, 2018 by nitinrawat895 205 views
0 votes
1 answer