You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by ha...@apache.org on 2016/05/14 15:21:46 UTC

hive git commit: HIVE-13743 : Data move codepath is broken with hive (2.1.0-SNAPSHOT) (Ashutosh Chauhan via Thejas Nair)

Repository: hive
Updated Branches:
  refs/heads/master 8f28b4554 -> f928c17ce


HIVE-13743 : Data move codepath is broken with hive (2.1.0-SNAPSHOT) (Ashutosh Chauhan via Thejas Nair)

Signed-off-by: Ashutosh Chauhan <ha...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/hive/repo
Commit: http://git-wip-us.apache.org/repos/asf/hive/commit/f928c17c
Tree: http://git-wip-us.apache.org/repos/asf/hive/tree/f928c17c
Diff: http://git-wip-us.apache.org/repos/asf/hive/diff/f928c17c

Branch: refs/heads/master
Commit: f928c17ce42d38ce514fd2d8c46b323e59672a30
Parents: 8f28b45
Author: Ashutosh Chauhan <ha...@apache.org>
Authored: Thu May 12 11:45:48 2016 -0700
Committer: Ashutosh Chauhan <ha...@apache.org>
Committed: Sat May 14 08:20:38 2016 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/f928c17c/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java
----------------------------------------------------------------------
diff --git a/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java b/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java
index 64b8780..2b7c747 100644
--- a/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java
+++ b/shims/0.23/src/main/java/org/apache/hadoop/hive/shims/Hadoop23Shims.java
@@ -1149,7 +1149,12 @@ public class Hadoop23Shims extends HadoopShimsSecure {
       if(!"hdfs".equalsIgnoreCase(path.toUri().getScheme())) {
         return false;
       }
-      return (hdfsAdmin.getEncryptionZoneForPath(fullPath) != null);
+      try {
+        return (hdfsAdmin.getEncryptionZoneForPath(fullPath) != null);
+      } catch (FileNotFoundException fnfe) {
+        LOG.debug("Failed to get EZ for non-existent path: "+ fullPath, fnfe);
+        return false;
+      }
     }
 
     @Override