What happend while formatting hadoop namenode

0 votes

I have setup a single node hadoop in my VM. While doing so, before starting all the daemons, I had run the command to format the namenode:

  bin/hadoop namenode -format

Now, I want to know what exactly happens in hadoop namenode formatting. Basically, I would like to know why this step is requirement during hadoop installation.

May 4, 2018 in Big Data Hadoop by Atul
• 10,240 points
622 views

1 answer to this question.

0 votes
Basically, NameNode is the master daemon that manages all the hdfs data and maintains meta data w.r.t. the data stored in hdfs. Meta data are nothing but infrormation about the hdfs data blocks i.e. data block location, the hdfs directory structure, permissions, etc. Now, when you format the NameNode using the command mentioned, you are instructing NameNode to format the meta data info w.r.t. all the data nodes. This allow you to use all the hdfs space as the info regarding the old hdfs data has been deleted.
answered May 4, 2018 by Ashish
• 2,650 points

Related Questions In Big Data Hadoop

+1 vote
1 answer

What is difference between Hadoop Namenode HA and HDFS federation?

The main difference between HDFS High Availability ...READ MORE

answered Oct 31, 2018 in Big Data Hadoop by Frankie
• 9,830 points
3,379 views
0 votes
1 answer

Hadoop MacOS: formatting namenode: Could not find or load main class

You need to point the HADOOP_PREFIX to ...READ MORE

answered Nov 13, 2018 in Big Data Hadoop by Omkar
• 69,220 points
1,316 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 21, 2018 in Big Data Hadoop by Omkar
• 69,220 points
2,961 views
+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,028 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
108,832 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,612 views
0 votes
1 answer
0 votes
1 answer

What Distributed Cache is actually used for in Hadoop?

Basically distributed cache allows you to cache ...READ MORE

answered Apr 3, 2018 in Big Data Hadoop by Ashish
• 2,650 points
2,153 views
0 votes
1 answer

What is the use of sequence file in Hadoop?

Sequence files are binary files containing serialized ...READ MORE

answered Apr 6, 2018 in Big Data Hadoop by Ashish
• 2,650 points
9,582 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