// Set the hbase.rootdir to be the home directory in mini dfs.
this.conf.set(HConstants.HBASE_DIR,
cluster.getFileSystem().getHomeDirectory().toString());
HTableDescriptor desc = new HTableDescriptor("test");
desc.addFamily(new HColumnDescriptor(CONTENTS));
desc.addFamily(new HColumnDescriptor(HConstants.COLUMN_FAMILY));
region = createNewHRegion(desc, null, null);
HRegionIncommon r = new HRegionIncommon(region);
// Write information to the table