OOZIE-2776 Log message is repeated twice for hive actions (satishsaley)
Project: http://git-wip-us.apache.org/repos/asf/oozie/repo Commit: http://git-wip-us.apache.org/repos/asf/oozie/commit/2712526d Tree: http://git-wip-us.apache.org/repos/asf/oozie/tree/2712526d Diff: http://git-wip-us.apache.org/repos/asf/oozie/diff/2712526d Branch: refs/heads/oya Commit: 2712526de886647a262c2f9ae94b27805fb14d5e Parents: bf2802e Author: Satish Subhashrao Saley <sa...@yahoo-inc.com> Authored: Mon Jan 23 09:17:18 2017 -0800 Committer: Satish Subhashrao Saley <sa...@yahoo-inc.com> Committed: Mon Jan 23 09:17:18 2017 -0800 ---------------------------------------------------------------------- release-log.txt | 1 + .../src/main/java/org/apache/oozie/action/hadoop/HiveMain.java | 3 +++ 2 files changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/oozie/blob/2712526d/release-log.txt ---------------------------------------------------------------------- diff --git a/release-log.txt b/release-log.txt index ca9cd43..513b283 100644 --- a/release-log.txt +++ b/release-log.txt @@ -1,5 +1,6 @@ -- Oozie 4.4.0 release (trunk - unreleased) +OOZIE-2776 Log message is repeated twice for hive actions (satishsaley) OOZIE-2691 Show workflow action retry information in UI (puru) OOZIE-2709 Log the substituted pig script by expanding macros (satishsaley) OOZIE-2732 Remove login server example (rkanter via abhishekbafna) http://git-wip-us.apache.org/repos/asf/oozie/blob/2712526d/sharelib/hive/src/main/java/org/apache/oozie/action/hadoop/HiveMain.java ---------------------------------------------------------------------- diff --git a/sharelib/hive/src/main/java/org/apache/oozie/action/hadoop/HiveMain.java b/sharelib/hive/src/main/java/org/apache/oozie/action/hadoop/HiveMain.java index bbcaefa..e1c7caa 100644 --- a/sharelib/hive/src/main/java/org/apache/oozie/action/hadoop/HiveMain.java +++ b/sharelib/hive/src/main/java/org/apache/oozie/action/hadoop/HiveMain.java @@ -166,8 +166,11 @@ public class HiveMain extends LauncherMain { hadoopProps.setProperty("log4j.appender.jobid.layout", "org.apache.log4j.PatternLayout"); hadoopProps.setProperty("log4j.appender.jobid.layout.ConversionPattern", "%d [%t] %-5p %c %x - %m%n"); hadoopProps.setProperty("log4j.logger.org.apache.hadoop.hive.ql.exec", "INFO, jobid"); + hadoopProps.setProperty("log4j.additivity.org.apache.hadoop.hive.ql.exec", "false"); hadoopProps.setProperty("log4j.logger.SessionState", "INFO, jobid"); + hadoopProps.setProperty("log4j.additivity.SessionState", "false"); hadoopProps.setProperty("log4j.logger.org.apache.hadoop.yarn.client.api.impl.YarnClientImpl", "INFO, jobid"); + hadoopProps.setProperty("log4j.additivity.org.apache.hadoop.yarn.client.api.impl.YarnClientImpl", "false"); String localProps = new File(HIVE_L4J_PROPS).getAbsolutePath(); OutputStream os1 = new FileOutputStream(localProps);