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 2019/09/16 19:24:20 UTC

[hive] branch master updated: HIVE-22169 : Tez: SplitGenerator tries to look for plan files which won't exist for Tez (Gopal V via Vineet Garg)

This is an automated email from the ASF dual-hosted git repository.

hashutosh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hive.git


The following commit(s) were added to refs/heads/master by this push:
     new 6ecd190  HIVE-22169 : Tez: SplitGenerator tries to look for plan files which won't exist for Tez (Gopal V via Vineet Garg)
6ecd190 is described below

commit 6ecd190951df79cef3e41a2b0edddec5b3d987bd
Author: Gopal V <go...@apache.org>
AuthorDate: Mon Sep 16 12:23:44 2019 -0700

    HIVE-22169 : Tez: SplitGenerator tries to look for plan files which won't exist for Tez (Gopal V via Vineet Garg)
    
    Signed-off-by: Ashutosh Chauhan <as...@cloudera.com>
---
 .../java/org/apache/hadoop/hive/ql/exec/Utilities.java   | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java b/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
index 3d6859c..47ee9d8 100644
--- a/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
+++ b/ql/src/java/org/apache/hadoop/hive/ql/exec/Utilities.java
@@ -314,15 +314,17 @@ public final class Utilities {
       return;
     }
 
+
     try {
-      FileSystem fs = mapPath.getFileSystem(conf);
-      if (fs.exists(mapPath)) {
-        fs.delete(mapPath, true);
-      }
-      if (fs.exists(reducePath)) {
-        fs.delete(reducePath, true);
+      if (!HiveConf.getBoolVar(conf, ConfVars.HIVE_RPC_QUERY_PLAN)) {
+        FileSystem fs = mapPath.getFileSystem(conf);
+        if (fs.exists(mapPath)) {
+          fs.delete(mapPath, true);
+        }
+        if (fs.exists(reducePath)) {
+          fs.delete(reducePath, true);
+        }
       }
-
     } catch (Exception e) {
       LOG.warn("Failed to clean-up tmp directories.", e);
     } finally {