You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by we...@apache.org on 2016/12/13 19:07:34 UTC

hive git commit: HIVE-15421 : Assumption in exception handling can be wrong in DagUtils.localizeResource (Wei Zheng, reviewed by Daniel Dai)

Repository: hive
Updated Branches:
  refs/heads/master 950ed9db8 -> 8e3c369c1


HIVE-15421 : Assumption in exception handling can be wrong in DagUtils.localizeResource (Wei Zheng, reviewed by Daniel Dai)


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

Branch: refs/heads/master
Commit: 8e3c369c12c16e75098f2c78f293c36755e6878f
Parents: 950ed9d
Author: Wei Zheng <we...@apache.org>
Authored: Tue Dec 13 11:07:33 2016 -0800
Committer: Wei Zheng <we...@apache.org>
Committed: Tue Dec 13 11:07:33 2016 -0800

----------------------------------------------------------------------
 ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hive/blob/8e3c369c/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java
----------------------------------------------------------------------
diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java
index eefa1d9..aa2dfc7 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/tez/DagUtils.java
@@ -1010,6 +1010,11 @@ public class DagUtils {
         }
         copyNotifiers.remove(srcStr, notifier);
       } catch (IOException e) {
+        if ("Exception while contacting value generator".equals(e.getMessage())) {
+          // HADOOP-13155, fixed version: 2.8.0, 3.0.0-alpha1
+          throw new IOException("copyFromLocalFile failed due to HDFS KMS failure", e);
+        }
+
         LOG.info("Looks like another thread or process is writing the same file");
         int waitAttempts = HiveConf.getIntVar(
             conf, ConfVars.HIVE_LOCALIZE_RESOURCE_NUM_WAIT_ATTEMPTS);