try { FileSystem fs = dest_path.getFileSystem(conf); if (! MetaStoreUtils.isDirEmpty(fs,dest_path)){ LOG.warn("Attempted write into an immutable table : " + dest_tab.getTableName() + " : " + dest_path); try { FileSystem fs = partPath.getFileSystem(conf); if (! MetaStoreUtils.isDirEmpty(fs,partPath)){ LOG.warn("Attempted write into an immutable table partition : " + dest_tab.getTableName() + " : " + partPath);
if(immutable && fs.exists(finalOutputPath) && !MetaStoreUtils.isDirEmpty(fs, finalOutputPath)) {
if(immutable && fs.exists(finalOutputPath) && !MetaStoreUtils.isDirEmpty(fs, finalOutputPath)) {
if(immutable && fs.exists(finalOutputPath) && !MetaStoreUtils.isDirEmpty(fs, finalOutputPath)) {
FileSystem fs = tablePath.getFileSystem(context.getConfiguration()); if (!MetaStoreUtils.isDirEmpty(fs,tablePath)){ throw new HCatException(ErrorType.ERROR_NON_EMPTY_TABLE, table.getDbName() + "." + table.getTableName());
FileSystem fs = tablePath.getFileSystem(context.getConfiguration()); if (!MetaStoreUtils.isDirEmpty(fs,tablePath)){ throw new HCatException(ErrorType.ERROR_NON_EMPTY_TABLE, table.getDbName() + "." + table.getTableName());
FileSystem fs = tablePath.getFileSystem(context.getConfiguration()); if (!MetaStoreUtils.isDirEmpty(fs,tablePath)){ throw new HCatException(ErrorType.ERROR_NON_EMPTY_TABLE, table.getDbName() + "." + table.getTableName());
try { FileSystem fs = dest_path.getFileSystem(conf); if (! MetaStoreUtils.isDirEmpty(fs,dest_path)){ LOG.warn("Attempted write into an immutable table : " + dest_tab.getTableName() + " : " + dest_path); try { FileSystem fs = partPath.getFileSystem(conf); if (! MetaStoreUtils.isDirEmpty(fs,partPath)){ LOG.warn("Attempted write into an immutable table partition : " + dest_tab.getTableName() + " : " + partPath);