if (extent.isRootTablet()) {
throw new IllegalArgumentException("Can not import files to root tablet");
}
synchronized (bulkFileImportLock) {
TCredentials auths = SecurityConstants.getSystemCredentials();
Connector conn;
try {
conn = HdfsZooInstance.getInstance().getConnector(auths.getPrincipal(), CredentialHelper.extractToken(auths));
} catch (Exception ex) {
throw new IOException(ex);
}
// Remove any bulk files we've previously loaded and compacted away
List<String> files = MetadataTable.getBulkFilesLoaded(conn, extent, tid);