Is there a way to rebalance single Datanode in Hadoop.

0 votes

If I have 2 DataNode DN1 and DN2 with two directories storing the data i.e. ‘/DN1’ & ‘/DN2’. So, can I move the blocks from one DN to another DN and update the meta.

Apr 15, 2018 in Big Data Hadoop by Shubham
• 13,110 points
49 views

1 answer to this question.

0 votes

Currently Hadoop does not automatically do this. You have to do this manually:

  1. Shutdown involved DataNode
  2. Use mv command to move the block replica and meta pairs from one directory to another. Ensure that the sub directory structure remains same. If this is not maintained, the DN will no longer be able to locate the replicas after the move.
  3. Restart the DataNode.
answered Apr 15, 2018 by kurt_cobain
• 9,240 points

Related Questions In Big Data Hadoop

0 votes
1 answer
0 votes
1 answer
0 votes
1 answer

Is there any way to increase Java Heap size in Hadoop?

You can add some more memory by ...READ MORE

answered Apr 12, 2018 in Big Data Hadoop by nitinrawat895
• 10,030 points
739 views
0 votes
1 answer

Is there any way to access Hadoop web UI in linux?

In this case what you can do ...READ MORE

answered May 9, 2018 in Big Data Hadoop by nitinrawat895
• 10,030 points
561 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,030 points
2,036 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,030 points
190 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,308 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
754 views
0 votes
1 answer