Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created 11-11-2015 02:45 PM
Hi dear experts!
i'm wondering is there any way to force block redistridution for some particular file/directory.
my case is:
1) load file from node that have DataNode process with replication factor 1
2) increace replication factor by executing: hdfs dfs -setrep 3 /tmp/path/to/my/file
3) check distribution with some specific Java tool:
hadoop jar FileDistribution.jar /tmp/path/to/my/file
and got:
-----------------------------------
-----------------------------------
Files distribution in directory across cluster is : {scaj31bda05.us.oracle.com=400, scaj31bda03.us.oracle.com=183, scaj31bda04.us.oracle.com=156, scaj31bda01.us.oracle.com=151, scaj31bda02.us.oracle.com=154, scaj31bda06.us.oracle.com=156}
it's obvious that first node contain 400 blocks. other 400*2=800 blocks evenly distributed across other nodes.
it there any way for force block redistribution for make it even?
thanks!
Created 11-25-2015 11:18 AM
Created 11-14-2015 08:46 AM
Created 11-25-2015 11:18 AM