HBASE-16646 Enhance LoadIncrementalHFiles API to accept store file paths as input - addendum populates filesystem for the new doBulkLoad()
This commit is contained in:
parent
181fed4450
commit
22dcce571c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue