HBASE-16646 Enhance LoadIncrementalHFiles API to accept store file paths as input - addendum populates filesystem for the new doBulkLoad()

This commit is contained in:
tedyu 2016-09-20 10:52:38 -07:00
parent 181fed4450
commit 22dcce571c
1 changed files with 6 additions and 0 deletions

View File

@ -382,6 +382,12 @@ public class LoadIncrementalHFiles extends Configured implements Tool {
}
pool = createExecutorService();
secureClient = new SecureBulkLoadClient(table.getConfiguration(), table);
for (Map.Entry<byte[], List<Path>> entry : map.entrySet()) {
for (Path p : entry.getValue()) {
fs = p.getFileSystem(table.getConfiguration());
break;
}
}
performBulkLoad(admin, table, regionLocator, queue, pool, secureClient);
} finally {
cleanup(admin, queue, pool, secureClient);