Created
May 30, 2013 18:38
-
-
Save shrijeet/5680078 to your computer and use it in GitHub Desktop.
Do not run taskCleanup if running hive in sequential mode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if (tsk.ifRetryCmdWhenFail()) { | |
- if (running.size() != 0) { | |
+ if (running.size() != 0 && executeTasksInParallel()) { | |
taskCleanup(); | |
} | |
// in case we decided to run everything in local mode, restore the | |
@@ -1183,7 +1183,7 @@ public class Driver implements CommandProcessor { | |
} | |
SQLState = "08S01"; | |
console.printError(errorMessage); | |
- if (running.size() != 0) { | |
+ if (running.size() != 0 && executeTasksInParallel()) { | |
taskCleanup(); | |
} | |
// in case we decided to run everything in local mode, restore the | |
@@ -1299,6 +1299,10 @@ public class Driver implements CommandProcessor { | |
return (0); | |
} | |
+ private boolean executeTasksInParallel() { | |
+ return HiveConf.getBoolVar(conf, HiveConf.ConfVars.EXECPARALLEL); | |
+ } | |
+ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment