Using -w option for the set replication command will wait until replication is done. Then run fsck to check if the all blocks are on at least two racks.
Hairong On 10/14/08 12:06 PM, "Sriram Rao" <[EMAIL PROTECTED]> wrote: > Hi, > > We have a cluster where we running HDFS in non-rack-aware mode. Now, > we want to switch HDFS to run in rack-aware mode. Apart from the > config changes (and restarting HDFS), to rackify the existing data, we > were thinking of increasing/decreasing replication level a few times > to get the data spread. Are there any tools that will enable us to > know when we are "done"? > > Sriram