/** Setup the cluster */ public BlockReaderTestUtil(int replicationFactor) throws Exception { conf = new HdfsConfiguration(); conf.setInt(DFSConfigKeys.DFS_REPLICATION_KEY, replicationFactor); cluster = new MiniDFSCluster.Builder(conf).format(true).build(); cluster.waitActive(); }