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, 2019 in Big Data Hadoop by ravi
• 220 points
814 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, 2019 by nitinrawat895
• 11,380 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, 2019 in Big Data Hadoop by Sanam
1,341 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, 2019 in Big Data Hadoop by Gitika
• 65,770 points
781 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, 2019 in Big Data Hadoop by Hansini
2,932 views
0 votes
0 answers
+1 vote
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
• 11,380 points
11,077 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
• 11,380 points
2,575 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
109,074 views
–1 vote
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,350 points
4,642 views
0 votes
1 answer

How to delete a directory from Hadoop cluster which is having comma(,) in its name?

Just try the following command: hadoop fs -rm ...READ MORE

answered May 7, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
3,085 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
• 11,380 points

edited Mar 22, 2018 by nitinrawat895 3,078 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP