You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "Vlad Gudikov (JIRA)" <ji...@apache.org> on 2017/08/29 14:13:00 UTC

[jira] [Comment Edited] (HIVE-11309) Replace PidDailyRollingFileAppender with equivalent log4j2 implementation

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

Vlad Gudikov edited comment on HIVE-11309 at 8/29/17 2:12 PM:
--------------------------------------------------------------

I think it doesn't work correctly. I am adding pid to file pattern.

{code}
appender.DRFA.filePattern = ${sys:hive.log.dir}/${sys:hive.log.file}.%d{yyyy-MM-dd-HH-mm}.%pid
{code}
When it's time to roll it just takes whole hive.log and renames it as described above. hive.log contains logs from different services so the logs create on roll are not containing information about processes they've been created for. 


was (Author: allgoodok):
I think it doesn't work correctly. I am adding pid to file pattern.

appender.DRFA.filePattern = ${sys:hive.log.dir}/${sys:hive.log.file}.%d{yyyy-MM-dd-HH-mm}.%pid

When it's time to roll it just takes whole hive.log and renames it as described above. hive.log contains logs from different services so the logs create on roll are not containing information about processes they've been created for. 

> Replace PidDailyRollingFileAppender with equivalent log4j2 implementation
> -------------------------------------------------------------------------
>
>                 Key: HIVE-11309
>                 URL: https://issues.apache.org/jira/browse/HIVE-11309
>             Project: Hive
>          Issue Type: Sub-task
>    Affects Versions: 2.0.0
>            Reporter: Prasanth Jayachandran
>            Assignee: Prasanth Jayachandran
>         Attachments: HIVE-11309.patch
>
>
> PidDailyRollingFileAppender appends pid@hostname information to file name output. Similar thing can be achieved by adding a custom file pattern converter in log4j2.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)