// Before we can load the HFiles, we need to set the permissions so that
// HBase has write access to testDir's contents
chmod(testDir.toString());
// Perform the actual load
new LoadIncrementalHFiles(conf).doBulkLoad(testDir, table);
// Ensure data shows up
int expectedRows = NMapInputFormat.getNumMapTasks(conf) * ROWSPERSPLIT;
assertEquals("LoadIncrementalHFiles should put expected data in table",
expectedRows, HBaseTestUtil.countRows(table));