Namenode v/s Secondary namenode

0 votes
Hadoop is Consistent and partition tolerant, i.e. It falls under the CP category of the CAP theoram.

Hadoop is not available because all the nodes are dependent on the name node. If the name node falls the cluster goes down.

But considering the fact that the HDFS cluster has a secondary name node why cant we call hadoop as available. If the name node is down the secondary name node can be used for the writes.

What is the major difference between name node and secondary name node that makes hadoop unavailable.

Thanks in advance.
Sep 9 in Big Data Hadoop by nitinrawat895
• 10,730 points
111 views

1 answer to this question.

0 votes
Name Node is a primary node in which all the metadata is stored into fsimage and edit log files periodically. But, when name node down secondary node will be online but this node only has the read access to the fsimage and edit log files and don't have the write access to them. All the secondary node operations will be stored to the temp folder. when name node back to online this temp folder will be copied to name node and the namenode will update the fsimage and edit log files.
answered Sep 9 by ravikiran
• 4,560 points
Good Answer Ravikiran..Also could you please let us know what is the temp folder name which the fs image and editlogs of secondary namenode will save .SPOF is overcomed by High availability is that accurate?

The name of the directory where you will find fs image and editlogs will be in the directory mentioned to the dfs.name.dir option in the hdfs-site.xml file. 

Yes, SPOF can be solved by High Availability. You can read more on High Availability here: https://www.edureka.co/blog/how-to-set-up-hadoop-cluster-with-hdfs-high-availability/ 

Related Questions In Big Data Hadoop

0 votes
3 answers

What are differences between NameNode and Secondary NameNode?

File metadata information is stored by Namenode ...READ MORE

answered Apr 7 in Big Data Hadoop by anonymous
2,278 views
0 votes
1 answer

How to configure secondary namenode in Hadoop 2.x ?

bin/hadoop-daemon.sh start [namenode | secondarynamenode | datanode ...READ MORE

answered Apr 6, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
436 views
0 votes
1 answer

What does a secondary namenode do in Hadoop?

The Secondary namenode is mainly used as a ...READ MORE

answered Dec 20, 2018 in Big Data Hadoop by Omkar
• 67,660 points
98 views
+1 vote
2 answers

Failed to restart Hadoop namenode using cloudera quickstart

You can use cloudera manager to manage ...READ MORE

answered Mar 19, 2018 in Big Data Hadoop by kurt_cobain
• 9,260 points
846 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,730 points
3,391 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,730 points
408 views
0 votes
10 answers

hadoop fs -put command?

put syntax: put <localSrc> <dest> copy syntax: copyFr ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Aditya
16,929 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,260 points
1,237 views
0 votes
1 answer

Differences between Cassandra and Hadoop, Real-time Processing v/s Batch Processing

Hadoop is basically designed including HDFS loaded with ...READ MORE

answered Jun 18 in Big Data Hadoop by ravikiran
• 4,560 points
64 views
0 votes
1 answer

Explain to me the difference between name node and secondary name node.

Firstly, You need to understand the major ...READ MORE

answered Apr 30 in Big Data Hadoop by ravikiran
• 4,560 points
63 views