You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hive.apache.org by cw...@apache.org on 2011/03/07 00:43:23 UTC

svn commit: r1078632 - /hive/branches/branch-0.7/service/src/java/org/apache/hadoop/hive/service/HiveServer.java

Author: cws
Date: Sun Mar  6 23:43:23 2011
New Revision: 1078632

URL: http://svn.apache.org/viewvc?rev=1078632&view=rev
Log:
HIVE-2007 Executing queries using Hive Server is not logging to the log file specified in hive-log4j.properties (Chinna Rao Lalam via cws)

Modified:
    hive/branches/branch-0.7/service/src/java/org/apache/hadoop/hive/service/HiveServer.java

Modified: hive/branches/branch-0.7/service/src/java/org/apache/hadoop/hive/service/HiveServer.java
URL: http://svn.apache.org/viewvc/hive/branches/branch-0.7/service/src/java/org/apache/hadoop/hive/service/HiveServer.java?rev=1078632&r1=1078631&r2=1078632&view=diff
==============================================================================
--- hive/branches/branch-0.7/service/src/java/org/apache/hadoop/hive/service/HiveServer.java (original)
+++ hive/branches/branch-0.7/service/src/java/org/apache/hadoop/hive/service/HiveServer.java Sun Mar  6 23:43:23 2011
@@ -374,6 +374,9 @@ public class HiveServer extends ThriftHi
 
   public static void main(String[] args) {
     try {
+      //Initializing log for the HiveServer Mode
+      SessionState.initHiveLog4j();
+
       int port = 10000;
       if (args.length >= 1) {
         port = Integer.parseInt(args[0]);