if (!wh.mkdirs(partLocation)) { throw new MetaException(partLocation + " is not a directory or unable to create one");
} else { if (!wh.isDir(tblPath)) { if (!wh.mkdirs(tblPath, true)) { throw new MetaException(tblPath + " is not a directory or unable to create one");
if (!wh.isDir(dbPath)) { LOG.debug("Creating database path " + dbPath); if (!wh.mkdirs(dbPath)) { throw new MetaException("Unable to create database path " + dbPath + ", failed to create database " + db.getName());
if (!wh.mkdirs(tblPath)) { throw new MetaException(tblPath + " is not a directory or unable to create one");
} else { if (!wh.isDir(tblPath)) { if (!wh.mkdirs(tblPath)) { throw new MetaException(tblPath + " is not a directory or unable to create one");
if (!wh.mkdirs(destParentPath)) { throw new MetaException("Unable to create path " + destParentPath);
if (!wh.mkdirs(destParentPath)) { throw new MetaException("Unable to create path " + destParentPath);
firePreEvent(new PreCreateCatalogEvent(this, catalog)); if (!wh.isDir(catPath)) { if (!wh.mkdirs(catPath)) { throw new MetaException("Unable to create catalog path " + catPath + ", failed to create catalog " + catalog.getName());
if (!wh.mkdirs(partLocation)) { throw new MetaException(partLocation + " is not a directory or unable to create one");
warehouse.mkdirs(mp5Path); assertTrue(fs.exists(mp5Path));
private void create_database_core(RawStore ms, final Database db) throws AlreadyExistsException, InvalidObjectException, MetaException, IOException { if (!validateName(db.getName())) { throw new InvalidObjectException(db.getName() + " is not a valid database name"); } boolean success = false; try { ms.openTransaction(); if (null == db.getLocationUri()) { db.setLocationUri(wh.getDefaultDatabasePath(db.getName()).toString()); } ms.createDatabase(db); success = ms.commitTransaction(); } finally { if (!success) { ms.rollbackTransaction(); } else { wh.mkdirs(new Path(db.getLocationUri())); } } }
} else { if (!wh.isDir(tblPath)) { if (!wh.mkdirs(tblPath, true)) { throw new MetaException(tblPath + " is not a directory or unable to create one");
log.info(String.format("Partition location %s does not exist for table %s", location, tableQName)); if (!warehouse.mkdirs(path, false)) { throw new InvalidMetaException(String .format("%s is not a directory or unable to create one", location), null);
if (!wh.mkdirs(partLocation, true)) { throw new MetaException(partLocation + " is not a directory or unable to create one");
if (!wh.mkdirs(partLocation)) { throw new MetaException(partLocation + " is not a directory or unable to create one");
if (!wh.mkdirs(partLocation, true)) { throw new MetaException(partLocation + " is not a directory or unable to create one");
log.info(String.format("Partition location %s does not exist for table %s", location, tableQName)); if (!warehouse.mkdirs(path, false)) { throw new InvalidMetaException(String .format("%s is not a directory or unable to create one", location), null);
if (!wh.mkdirs(dbPath, true)) { throw new MetaException("Unable to create database path " + dbPath + ", failed to create database " + db.getName());
if (!wh.mkdirs(dbPath, true)) { throw new MetaException("Unable to create database path " + dbPath + ", failed to create database " + db.getName());
if (!wh.mkdirs(dbPath)) { throw new MetaException("Unable to create database path " + dbPath + ", failed to create database " + db.getName());