Index: conf/hive-default.xml
===================================================================
--- conf/hive-default.xml (revision 8240)
+++ conf/hive-default.xml (working copy)
@@ -626,6 +626,16 @@
Let hive determine whether to run in local mode automatically
+
+ hive.exec.show.job.failure.debug.info
+ false
+
+ If a job fails, whether to provide a link in the CLI to the task with the
+ most failures, along with debugging hints if applicable.
+
+
+
+
Index: common/src/java/org/apache/hadoop/hive/conf/HiveConf.java
===================================================================
--- common/src/java/org/apache/hadoop/hive/conf/HiveConf.java (revision 8240)
+++ common/src/java/org/apache/hadoop/hive/conf/HiveConf.java (working copy)
@@ -93,8 +93,9 @@
DYNAMICPARTITIONMAXPARTSPERNODE("hive.exec.max.dynamic.partitions.pernode", 100),
MAXCREATEDFILES("hive.exec.max.created.files", 100000L),
DEFAULTPARTITIONNAME("hive.exec.default.partition.name", "__HIVE_DEFAULT_PARTITION__"),
+ // Whether to show a link to the most failed task + debugging tips
+ SHOW_JOB_FAIL_DEBUG_INFO("hive.exec.show.job.failure.debug.info", true),
-
// should hive determine whether to run in local mode automatically ?
LOCALMODEAUTO("hive.exec.mode.local.auto", false),
// if yes:
Index: ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java
===================================================================
--- ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java (revision 8240)
+++ ql/src/java/org/apache/hadoop/hive/ql/exec/ExecDriver.java (working copy)
@@ -621,7 +621,9 @@
statusMesg += " with errors";
returnVal = 2;
console.printError(statusMesg);
- showJobFailDebugInfo(job, rj);
+ if (HiveConf.getBoolVar(conf, HiveConf.ConfVars.SHOW_JOB_FAIL_DEBUG_INFO)) {
+ showJobFailDebugInfo(job, rj);
+ }
} else {
console.printInfo(statusMesg);
}