Hadoop Command to merge edit logs with fsimage

0 votes
Can anyone help me in understanding how can I merge the edit logs with the fsimage without any downtime of the Hadoop cluster?
May 10, 2018 in Big Data Hadoop by us0101
345 views

1 answer to this question.

0 votes

You can use this command to save the Namespace image to the disk.

hdfs dfsadmin -saveNamespace

But before merging the namespace, you need to make sure that the NameNode is in safemode. If your NameNode is not in the safemode you can execute this command:

hdfs dfsadmin -safemode enter

During the safemode, you cannot alter or edit anything in the HDFS. You can only perform read & list operations. This is done because while merging the edit logs & the fsimage, there should be no changes in the HDFS, or the changes made will be lost.

answered May 10, 2018 by Shubham
• 13,300 points

Related Questions In Big Data Hadoop

0 votes
1 answer

Hadoop: How to use Jps command with Sun JDK installed?

You can put JPS into your path ...READ MORE

answered Nov 9, 2018 in Big Data Hadoop by Omkar
• 67,600 points
222 views
0 votes
1 answer

The file exists before processing with hadoop command

Took session and it got resolved. READ MORE

answered Dec 18, 2017 in Big Data Hadoop by Sudhir
• 1,610 points
74 views
0 votes
1 answer

How to get started with Hadoop?

Well, hadoop is actually a framework that ...READ MORE

answered Mar 21, 2018 in Big Data Hadoop by coldcode
• 2,020 points
95 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,690 points
3,051 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
15,006 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,118 views
0 votes
1 answer
0 votes
1 answer

Best way of starting & stopping the Hadoop daemons with command line

First way is to use start-all.sh & ...READ MORE

answered Apr 15, 2018 in Big Data Hadoop by Shubham
• 13,300 points
1,745 views
0 votes
11 answers