hive-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hashut...@apache.org
Subject svn commit: r1537361 - in /hive/trunk: common/src/java/conf/ common/src/test/resources/ data/conf/ ql/src/java/conf/ ql/src/test/org/apache/hadoop/hive/ql/ testutils/ptest2/src/main/resources/
Date Thu, 31 Oct 2013 00:51:10 GMT
Author: hashutosh
Date: Thu Oct 31 00:51:09 2013
New Revision: 1537361

URL: http://svn.apache.org/r1537361
Log:
HIVE-5670 : annoying ZK exceptions are annoying (Sergey Shelukhin via Ashutosh Chauhan)

Modified:
    hive/trunk/common/src/java/conf/hive-log4j.properties
    hive/trunk/common/src/test/resources/hive-exec-log4j-test.properties
    hive/trunk/common/src/test/resources/hive-log4j-test.properties
    hive/trunk/data/conf/hive-log4j.properties
    hive/trunk/ql/src/java/conf/hive-exec-log4j.properties
    hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java
    hive/trunk/testutils/ptest2/src/main/resources/log4j.properties

Modified: hive/trunk/common/src/java/conf/hive-log4j.properties
URL: http://svn.apache.org/viewvc/hive/trunk/common/src/java/conf/hive-log4j.properties?rev=1537361&r1=1537360&r2=1537361&view=diff
==============================================================================
--- hive/trunk/common/src/java/conf/hive-log4j.properties (original)
+++ hive/trunk/common/src/java/conf/hive-log4j.properties Thu Oct 31 00:51:09 2013
@@ -82,3 +82,7 @@ log4j.category.JPOX.Query=ERROR,DRFA
 log4j.category.JPOX.General=ERROR,DRFA
 log4j.category.JPOX.Enhancer=ERROR,DRFA
 
+
+# Silence useless ZK logs
+log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN,DRFA
+log4j.logger.org.apache.zookeeper.ClientCnxnSocketNIO=WARN,DRFA

Modified: hive/trunk/common/src/test/resources/hive-exec-log4j-test.properties
URL: http://svn.apache.org/viewvc/hive/trunk/common/src/test/resources/hive-exec-log4j-test.properties?rev=1537361&r1=1537360&r2=1537361&view=diff
==============================================================================
--- hive/trunk/common/src/test/resources/hive-exec-log4j-test.properties (original)
+++ hive/trunk/common/src/test/resources/hive-exec-log4j-test.properties Thu Oct 31 00:51:09
2013
@@ -53,3 +53,7 @@ log4j.category.JPOX.Query=ERROR,FA
 log4j.category.JPOX.General=ERROR,FA
 log4j.category.JPOX.Enhancer=ERROR,FA
 
+
+# Silence useless ZK logs
+log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN,FA
+log4j.logger.org.apache.zookeeper.ClientCnxnSocketNIO=WARN,FA

Modified: hive/trunk/common/src/test/resources/hive-log4j-test.properties
URL: http://svn.apache.org/viewvc/hive/trunk/common/src/test/resources/hive-log4j-test.properties?rev=1537361&r1=1537360&r2=1537361&view=diff
==============================================================================
--- hive/trunk/common/src/test/resources/hive-log4j-test.properties (original)
+++ hive/trunk/common/src/test/resources/hive-log4j-test.properties Thu Oct 31 00:51:09 2013
@@ -65,3 +65,7 @@ log4j.category.JPOX.Query=ERROR,DRFA
 log4j.category.JPOX.General=ERROR,DRFA
 log4j.category.JPOX.Enhancer=ERROR,DRFA
 
+
+# Silence useless ZK logs
+log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN,DRFA
+log4j.logger.org.apache.zookeeper.ClientCnxnSocketNIO=WARN,DRFA

Modified: hive/trunk/data/conf/hive-log4j.properties
URL: http://svn.apache.org/viewvc/hive/trunk/data/conf/hive-log4j.properties?rev=1537361&r1=1537360&r2=1537361&view=diff
==============================================================================
--- hive/trunk/data/conf/hive-log4j.properties (original)
+++ hive/trunk/data/conf/hive-log4j.properties Thu Oct 31 00:51:09 2013
@@ -76,3 +76,7 @@ log4j.category.JPOX.General=ERROR,DRFA
 log4j.category.JPOX.Enhancer=ERROR,DRFA
 log4j.logger.org.apache.hadoop.conf.Configuration=ERROR,DRFA
 
+
+# Silence useless ZK logs
+log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN,DRFA
+log4j.logger.org.apache.zookeeper.ClientCnxnSocketNIO=WARN,DRFA

Modified: hive/trunk/ql/src/java/conf/hive-exec-log4j.properties
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/java/conf/hive-exec-log4j.properties?rev=1537361&r1=1537360&r2=1537361&view=diff
==============================================================================
--- hive/trunk/ql/src/java/conf/hive-exec-log4j.properties (original)
+++ hive/trunk/ql/src/java/conf/hive-exec-log4j.properties Thu Oct 31 00:51:09 2013
@@ -71,3 +71,7 @@ log4j.category.JPOX.Query=ERROR,FA
 log4j.category.JPOX.General=ERROR,FA
 log4j.category.JPOX.Enhancer=ERROR,FA
 
+
+# Silence useless ZK logs
+log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN,FA
+log4j.logger.org.apache.zookeeper.ClientCnxnSocketNIO=WARN,FA

Modified: hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java
URL: http://svn.apache.org/viewvc/hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java?rev=1537361&r1=1537360&r2=1537361&view=diff
==============================================================================
--- hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java (original)
+++ hive/trunk/ql/src/test/org/apache/hadoop/hive/ql/QTestUtil.java Thu Oct 31 00:51:09 2013
@@ -89,6 +89,8 @@ import org.apache.hadoop.mapred.Sequence
 import org.apache.hadoop.mapred.TextInputFormat;
 import org.apache.hadoop.util.Shell;
 import org.apache.thrift.protocol.TBinaryProtocol;
+import org.apache.zookeeper.WatchedEvent;
+import org.apache.zookeeper.Watcher;
 import org.apache.zookeeper.ZooKeeper;
 
 /**
@@ -1358,7 +1360,11 @@ public class QTestUtil {
       }
 
       int sessionTimeout = conf.getIntVar(HiveConf.ConfVars.HIVE_ZOOKEEPER_SESSION_TIMEOUT);
-      zooKeeper = new ZooKeeper("localhost:" + zkPort, sessionTimeout, null);
+      zooKeeper = new ZooKeeper("localhost:" + zkPort, sessionTimeout, new Watcher() {
+        @Override
+        public void process(WatchedEvent arg0) {
+        }
+      });
 
       String zkServer = "localhost";
       conf.set("hive.zookeeper.quorum", zkServer);

Modified: hive/trunk/testutils/ptest2/src/main/resources/log4j.properties
URL: http://svn.apache.org/viewvc/hive/trunk/testutils/ptest2/src/main/resources/log4j.properties?rev=1537361&r1=1537360&r2=1537361&view=diff
==============================================================================
--- hive/trunk/testutils/ptest2/src/main/resources/log4j.properties (original)
+++ hive/trunk/testutils/ptest2/src/main/resources/log4j.properties Thu Oct 31 00:51:09 2013
@@ -31,3 +31,7 @@ log4j.logger.org.jclouds=INFO
 log4j.logger.jclouds=INFO
 log4j.logger.org.apache.hive=DEBUG
 log4j.logger.org.apache.http=TRACE
+
+# Silence useless ZK logs
+log4j.logger.org.apache.zookeeper.server.NIOServerCnxn=WARN
+log4j.logger.org.apache.zookeeper.ClientCnxnSocketNIO=WARN



Mime
View raw message