dn.length == 1);
LocatedBlocks locations = client.namenode.getBlockLocations(
file1.toString(), 0, Long.MAX_VALUE);
List<LocatedBlock> blocks = locations.getLocatedBlocks();
FSDataset dataset = (FSDataset) dn[0].data;
//
// Create hard links for a few of the blocks
//
for (int i = 0; i < blocks.size(); i = i + 2) {
Block b = (Block) blocks.get(i).getBlock();
FSDataset fsd = (FSDataset) dataset;
File f = fsd.getFile(b);
File link = new File(f.toString() + ".link");
System.out.println("Creating hardlink for File " + f +
" to " + link);
HardLink.createHardLink(f, link);
}