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 3, 2018 in Big Data Hadoop by Atul
• 10,240 points
32 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 3, 2018 by Ashish
• 2,630 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 30, 2018 in Big Data Hadoop by Frankie
• 9,810 points
170 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
• 67,140 points
85 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,140 points
43 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,110 points
2,058 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,537 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
771 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 2, 2018 in Big Data Hadoop by Ashish
• 2,630 points
112 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 5, 2018 in Big Data Hadoop by Ashish
• 2,630 points
665 views