diff --git ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java index 1df6094dd2..6ece0ba8f0 100644 --- ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java +++ ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java @@ -2710,7 +2710,9 @@ public static boolean isEmptyPath(Configuration job, Path dirPath) throws IOExce return false; } } catch(FileNotFoundException fnf) { - return true; + LOG.error("FileNotFoundException when listing " + dirPath, fnf); + //to handle cases when fs can genuinely throw FNFE due to permissions + throw fnf; } return true; }