private void deleteParentRecursive(Path parent, int depth, boolean mustPurge, boolean needRecycle) throws IOException, MetaException { if (depth > 0 && parent != null && wh.isWritable(parent)) { if (wh.isDir(parent) && wh.isEmpty(parent)) { wh.deleteDir(parent, true, mustPurge, needRecycle); } deleteParentRecursive(parent.getParent(), depth - 1, mustPurge, needRecycle); } }
throw new MetaException("Temp table path not set for " + tbl.getTableName()); } else { if (!wh.isDir(tblPath)) { if (!wh.mkdirs(tblPath, true)) { throw new MetaException(tblPath
if (!wh.isDir(partLocation)) { if (!wh.mkdirs(partLocation)) { throw new MetaException(partLocation
try { firePreEvent(new PreCreateDatabaseEvent(db, this)); if (!wh.isDir(dbPath)) { LOG.debug("Creating database path " + dbPath); if (!wh.mkdirs(dbPath)) {
if (!wh.isDir(wh.getWhRoot())) { FileSystem fs = wh.getWhRoot().getFileSystem(conf); fs.mkdirs(wh.getWhRoot());
if (!wh.isDir(tblPath)) { if (!wh.mkdirs(tblPath)) { throw new MetaException(tblPath
throw new MetaException("Temp table path not set for " + tbl.getTableName()); } else { if (!wh.isDir(tblPath)) { if (!wh.mkdirs(tblPath)) { throw new MetaException(tblPath
if (!wh.isDir(destParentPath)) { if (!wh.mkdirs(destParentPath)) { throw new MetaException("Unable to create path " + destParentPath);
try { firePreEvent(new PreCreateCatalogEvent(this, catalog)); if (!wh.isDir(catPath)) { if (!wh.mkdirs(catPath)) { throw new MetaException("Unable to create catalog path " + catPath +
if (!wh.isDir(partLocation)) { if (!wh.mkdirs(partLocation)) { throw new MetaException(partLocation
private void deleteParentRecursive(Path parent, int depth, boolean mustPurge, boolean needRecycle) throws IOException, MetaException { if (depth > 0 && parent != null && wh.isWritable(parent)) { if (wh.isDir(parent) && wh.isEmpty(parent)) { wh.deleteDir(parent, true, mustPurge, needRecycle); } deleteParentRecursive(parent.getParent(), depth - 1, mustPurge, needRecycle); } }
throw new MetaException("Temp table path not set for " + tbl.getTableName()); } else { if (!wh.isDir(tblPath)) { if (!wh.mkdirs(tblPath, true)) { throw new MetaException(tblPath
.withTags(tableQName.parts())).increment(); try { if (!warehouse.isDir(path)) {
if (!wh.isDir(partLocation)) { if (!wh.mkdirs(partLocation, true)) { throw new MetaException(partLocation
if (!wh.isDir(partLocation)) { if (!wh.mkdirs(partLocation)) { throw new MetaException(partLocation
if (!wh.isDir(partLocation)) { if (!wh.mkdirs(partLocation, true)) { throw new MetaException(partLocation
if (!wh.isDir(dbPath)) { if (!wh.mkdirs(dbPath, true)) { throw new MetaException("Unable to create database path " + dbPath +
if (!getWh().isDir(partLocation)) {
if (!wh.isDir(dbPath)) { if (!wh.mkdirs(dbPath, true)) { throw new MetaException("Unable to create database path " + dbPath +
if (!wh.isDir(dbPath)) { if (!wh.mkdirs(dbPath)) { throw new MetaException("Unable to create database path " + dbPath +