hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khorg...@apache.org
Subject svn commit: r1643473 - in /hive/trunk: common/pom.xml data/conf/hive-log4j.properties pom.xml ql/pom.xml shims/common/pom.xml
Date Fri, 05 Dec 2014 23:45:56 GMT
Author: khorgath
Date: Fri Dec  5 23:45:56 2014
New Revision: 1643473

URL: http://svn.apache.org/r1643473
Log:
HIVE-9001 : Ship with log4j.properties file that has a reliable time based rolling policy
(Hari Sankar Sivarama Subramaniyan via Sushanth Sowmyan)

Modified:
    hive/trunk/common/pom.xml
    hive/trunk/data/conf/hive-log4j.properties
    hive/trunk/pom.xml
    hive/trunk/ql/pom.xml
    hive/trunk/shims/common/pom.xml

Modified: hive/trunk/common/pom.xml
URL: http://svn.apache.org/viewvc/hive/trunk/common/pom.xml?rev=1643473&r1=1643472&r2=1643473&view=diff
==============================================================================
--- hive/trunk/common/pom.xml (original)
+++ hive/trunk/common/pom.xml Fri Dec  5 23:45:56 2014
@@ -61,6 +61,11 @@
       <version>${log4j.version}</version>
     </dependency>
     <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>apache-log4j-extras</artifactId>
+      <version>${log4j-extras.version}</version>
+    </dependency>
+    <dependency>
       <groupId>org.apache.commons</groupId>
       <artifactId>commons-compress</artifactId>
       <version>${commons-compress.version}</version>

Modified: hive/trunk/data/conf/hive-log4j.properties
URL: http://svn.apache.org/viewvc/hive/trunk/data/conf/hive-log4j.properties?rev=1643473&r1=1643472&r2=1643473&view=diff
==============================================================================
--- hive/trunk/data/conf/hive-log4j.properties (original)
+++ hive/trunk/data/conf/hive-log4j.properties Fri Dec  5 23:45:56 2014
@@ -44,6 +44,16 @@ log4j.appender.DRFA.layout=org.apache.lo
 # Debugging Pattern format
 log4j.appender.DRFA.layout.ConversionPattern=%d{ISO8601} %-5p %c{2} (%F:%M(%L)) - %m%n
 
+# Warning: If you enable the following appender it will fill up your disk if you don't have
a cleanup job!
+# This uses the updated rolling file appender from log4j-extras that supports a reliable
time-based rolling policy.
+# See http://logging.apache.org/log4j/companions/extras/apidocs/org/apache/log4j/rolling/TimeBasedRollingPolicy.html
+# Add "DAILY" to hive.root.logger above if you want to use this.
+log4j.appender.DAILY=org.apache.log4j.rolling.RollingFileAppender
+log4j.appender.DAILY.rollingPolicy=org.apache.log4j.rolling.TimeBasedRollingPolicy
+log4j.appender.DAILY.rollingPolicy.ActiveFileName=${hive.log.dir}/${hive.log.file}
+log4j.appender.DAILY.rollingPolicy.FileNamePattern=${hive.log.dir}/${hive.log.file}.%d{yyyy-MM-dd}
+log4j.appender.DAILY.layout=org.apache.log4j.PatternLayout
+log4j.appender.DAILY.layout.ConversionPattern=%d{dd MMM yyyy HH:mm:ss,SSS} %-5p [%t] (%C.%M:%L)
%x - %m%n
 
 #
 # console

Modified: hive/trunk/pom.xml
URL: http://svn.apache.org/viewvc/hive/trunk/pom.xml?rev=1643473&r1=1643472&r2=1643473&view=diff
==============================================================================
--- hive/trunk/pom.xml (original)
+++ hive/trunk/pom.xml Fri Dec  5 23:45:56 2014
@@ -141,6 +141,7 @@
     <libfb303.version>0.9.2</libfb303.version>
     <libthrift.version>0.9.2</libthrift.version>
     <log4j.version>1.2.16</log4j.version>
+    <log4j-extras.version>1.2.17</log4j-extras.version>
     <opencsv.version>2.3</opencsv.version>
     <mockito-all.version>1.9.5</mockito-all.version>
     <mina.version>2.0.0-M5</mina.version>
@@ -355,6 +356,11 @@
         <version>${log4j.version}</version>
       </dependency>
       <dependency>
+	<groupId>log4j</groupId>
+	<artifactId>apache-log4j-extras</artifactId>
+	<version>${log4j-extras.version}</version>
+      </dependency>
+      <dependency>
         <groupId>org.antlr</groupId>
         <artifactId>antlr-runtime</artifactId>
         <version>${antlr.version}</version>

Modified: hive/trunk/ql/pom.xml
URL: http://svn.apache.org/viewvc/hive/trunk/ql/pom.xml?rev=1643473&r1=1643472&r2=1643473&view=diff
==============================================================================
--- hive/trunk/ql/pom.xml (original)
+++ hive/trunk/ql/pom.xml Fri Dec  5 23:45:56 2014
@@ -111,6 +111,11 @@
       <version>${log4j.version}</version>
     </dependency>
     <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>apache-log4j-extras</artifactId>
+      <version>${log4j-extras.version}</version>
+    </dependency>
+    <dependency>
       <groupId>org.antlr</groupId>
       <artifactId>antlr-runtime</artifactId>
       <version>${antlr.version}</version>

Modified: hive/trunk/shims/common/pom.xml
URL: http://svn.apache.org/viewvc/hive/trunk/shims/common/pom.xml?rev=1643473&r1=1643472&r2=1643473&view=diff
==============================================================================
--- hive/trunk/shims/common/pom.xml (original)
+++ hive/trunk/shims/common/pom.xml Fri Dec  5 23:45:56 2014
@@ -46,6 +46,11 @@
       <version>${log4j.version}</version>
     </dependency>
     <dependency>
+      <groupId>log4j</groupId>
+      <artifactId>apache-log4j-extras</artifactId>
+      <version>${log4j-extras.version}</version>
+    </dependency>
+    <dependency>
       <groupId>com.google.guava</groupId>
       <artifactId>guava</artifactId>
       <version>${guava.version}</version>



Mime
View raw message