diff --git metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java index c99ce5f..3ecfbda 100755 --- metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java +++ metastore/src/java/org/apache/hadoop/hive/metastore/Warehouse.java @@ -539,6 +539,7 @@ public static String makePartName(List partCols, public FileStatus[] getFileStatusesForUnpartitionedTable(Database db, Table table) throws MetaException { - Path tablePath = getTablePath(db, table.getTableName()); + Path tablePath = getDnsPath(new Path(table.getSd().getLocation())); try { FileSystem fileSys = tablePath.getFileSystem(conf); return HiveStatsUtils.getFileStatusRecurse(tablePath, -1, fileSys);