ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From swa...@apache.org
Subject ambari git commit: AMBARI-17931. Enable log4j compression for HiveMetastore, HiveServer2 and Hive Server Interactive.
Date Wed, 27 Jul 2016 21:53:28 GMT
Repository: ambari
Updated Branches:
  refs/heads/branch-2.4 bbb65bf00 -> 4936ac623


AMBARI-17931. Enable log4j compression for HiveMetastore, HiveServer2 and Hive Server Interactive.


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/4936ac62
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/4936ac62
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/4936ac62

Branch: refs/heads/branch-2.4
Commit: 4936ac6232fcbc1f8a957f4a0a21f9304818ac67
Parents: bbb65bf
Author: Swapan Shridhar <sshridhar@hortonworks.com>
Authored: Wed Jul 27 14:53:08 2016 -0700
Committer: Swapan Shridhar <sshridhar@hortonworks.com>
Committed: Wed Jul 27 14:53:08 2016 -0700

----------------------------------------------------------------------
 .../services/HIVE/configuration/hive-log4j.xml  | 33 ++++++++++++--------
 .../services/HIVE/configuration/hive-log4j2.xml |  2 +-
 2 files changed, 21 insertions(+), 14 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/4936ac62/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j.xml
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j.xml
index c3575fb..2630abf 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j.xml
@@ -43,7 +43,7 @@
 
 # Define some default values that can be overridden by system properties
 hive.log.threshold=ALL
-hive.root.logger=INFO,DRFA
+hive.root.logger=INFO,RFA
 hive.log.dir=${java.io.tmpdir}/${user.name}
 hive.log.file=hive.log
 
@@ -77,6 +77,13 @@ log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
 # Debugging Pattern format
 log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t]: %c{2} (%F:%M(%L)) - %m%n
 
+# RFA introduction
+log4j.appender.RFA=org.apache.log4j.rolling.RollingFileAppender
+log4j.appender.RFA.File=${hive.log.dir}/${hive.log.file}
+log4j.appender.RFA.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
+log4j.appender.RFA.rollingPolicy.FileNamePattern=${hive.log.dir}/${hive.log.file}-%d{yyyyMMdd}.gz
+log4j.appender.RFA.layout=org.apache.log4j.PatternLayout
+log4j.appender.RFA.layout.ConversionPattern=%d{ISO8601} %-5p [%t]: %c{2} (%F:%M(%L)) - %m%n
 
 #
 # console
@@ -99,23 +106,23 @@ log4j.appender.console.encoding=UTF-8
 log4j.appender.EventCounter=org.apache.hadoop.hive.shims.HiveEventCounter
 
 
-log4j.category.DataNucleus=ERROR,DRFA
-log4j.category.Datastore=ERROR,DRFA
-log4j.category.Datastore.Schema=ERROR,DRFA
-log4j.category.JPOX.Datastore=ERROR,DRFA
-log4j.category.JPOX.Plugin=ERROR,DRFA
-log4j.category.JPOX.MetaData=ERROR,DRFA
-log4j.category.JPOX.Query=ERROR,DRFA
-log4j.category.JPOX.General=ERROR,DRFA
-log4j.category.JPOX.Enhancer=ERROR,DRFA
+log4j.category.DataNucleus=ERROR,RFA
+log4j.category.Datastore=ERROR,RFA
+log4j.category.Datastore.Schema=ERROR,RFA
+log4j.category.JPOX.Datastore=ERROR,RFA
+log4j.category.JPOX.Plugin=ERROR,RFA
+log4j.category.JPOX.MetaData=ERROR,RFA
+log4j.category.JPOX.Query=ERROR,RFA
+log4j.category.JPOX.General=ERROR,RFA
+log4j.category.JPOX.Enhancer=ERROR,RFA
 
 
 # Silence useless ZK logs
-log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN,DRFA
-log4j.logger.org.apache.zookeeper.ClientCnxnSocketNIO=WARN,DRFA
+log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN,RFA
+log4j.logger.org.apache.zookeeper.ClientCnxnSocketNIO=WARN,RFA
 
 # Silence HadoopMetrics2Reporter INFO logs
-log4j.logger.com.github.joshelser.dropwizard.metrics.hadoop=WARN,DRFA
+log4j.logger.com.github.joshelser.dropwizard.metrics.hadoop=WARN,RFA
 
     </value>
     <value-attributes>

http://git-wip-us.apache.org/repos/asf/ambari/blob/4936ac62/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j2.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j2.xml
b/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j2.xml
index 1337ee6..b6d13bd 100644
--- a/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j2.xml
+++ b/ambari-server/src/main/resources/stacks/HDP/2.5/services/HIVE/configuration/hive-log4j2.xml
@@ -66,7 +66,7 @@ appender.DRFA.type = RollingFile
 appender.DRFA.name = DRFA
 appender.DRFA.fileName = ${sys:hive.log.dir}/${sys:hive.log.file}
 # Use %pid in the filePattern to append process-id@host-name to the filename if you want
separate log files for different CLI session
-appender.DRFA.filePattern = ${sys:hive.log.dir}/${sys:hive.log.file}.%d{yyyy-MM-dd}
+appender.DRFA.filePattern = ${sys:hive.log.dir}/${sys:hive.log.file}.%d{yyyy-MM-dd}.gz
 appender.DRFA.layout.type = PatternLayout
 appender.DRFA.layout.pattern = %d{ISO8601} %-5p [%t]: %c{2} (%F:%M(%L)) - %m%n
 appender.DRFA.policies.type = Policies


Mime
View raw message