You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by th...@apache.org on 2014/01/17 02:14:37 UTC

svn commit: r1558971 - /hive/trunk/service/src/java/org/apache/hive/service/server/HiveServer2.java

Author: thejas
Date: Fri Jan 17 01:14:37 2014
New Revision: 1558971

URL: http://svn.apache.org/r1558971
Log:
HIVE-6054 : HiveServer2 does not log the output of LogUtils.initHiveLog4j(); (Hari Sankar Sivarama Subramaniyan via Thejas Nair)

Modified:
    hive/trunk/service/src/java/org/apache/hive/service/server/HiveServer2.java

Modified: hive/trunk/service/src/java/org/apache/hive/service/server/HiveServer2.java
URL: http://svn.apache.org/viewvc/hive/trunk/service/src/java/org/apache/hive/service/server/HiveServer2.java?rev=1558971&r1=1558970&r2=1558971&view=diff
==============================================================================
--- hive/trunk/service/src/java/org/apache/hive/service/server/HiveServer2.java (original)
+++ hive/trunk/service/src/java/org/apache/hive/service/server/HiveServer2.java Fri Jan 17 01:14:37 2014
@@ -122,8 +122,9 @@ public class HiveServer2 extends Composi
 
       //NOTE: It is critical to do this here so that log4j is reinitialized
       // before any of the other core hive classes are loaded
-      LogUtils.initHiveLog4j();
-
+      String initLog4jMessage = LogUtils.initHiveLog4j();
+      LOG.debug(initLog4jMessage);
+      
       HiveStringUtils.startupShutdownMessage(HiveServer2.class, args, LOG);
       //log debug message from "oproc" after log4j initialize properly
       LOG.debug(oproc.getDebugMessage().toString());