[ 
https://issues.apache.org/jira/browse/HIVE-2007?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12999377#comment-12999377
 ] 

Chinna Rao Lalam commented on HIVE-2007:
----------------------------------------

While starting the HiveServer, logger initialized with default properties it 
needs to be reinitialized with the hive-log4j.properties. so we can follow the 
same strategy in main() of HiveServer.java(i.e. when Hive is started in server 
mode) as done in main() of CliDriver.java(i.e. Hive is started in cli mode).

{noformat}
Note:
Logging behavior change is once it is reinitialized  it will log in file rather 
than on the console.
Currently it is considering consoleappender so all the log messages are coming 
on to the console.
{noformat}

> Executing queries using Hive Server is not logging to the log file specified 
> in hive-log4j.properties
> -----------------------------------------------------------------------------------------------------
>
>                 Key: HIVE-2007
>                 URL: https://issues.apache.org/jira/browse/HIVE-2007
>             Project: Hive
>          Issue Type: Bug
>          Components: Server Infrastructure
>    Affects Versions: 0.7.0
>         Environment: Hadoop 0.20.1, Hive0.7.0 and SUSE Linux Enterprise 
> Server 10 SP2 (i586) - Kernel 2.6.16.60-0.21-smp (5).
>            Reporter: Chinna Rao Lalam
>            Assignee: Chinna Rao Lalam
>         Attachments: HIVE-2007.patch
>
>
> Start Hive Server by specifying the log details ( filelocation , appender , 
> loglevel ) in hive-log4j.properties, but logging is not happening as per the 
> details provided in the hive-log4j.properties.

-- 
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to