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 11, 2018 in Big Data Hadoop by us0101
2,007 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 11, 2018 by Shubham
• 13,490 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
• 69,220 points
1,954 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,570 points
1,042 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

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,490 points
10,065 views
0 votes
11 answers
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