hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vlad Gudikov (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HIVE-11309) Replace PidDailyRollingFileAppender with equivalent log4j2 implementation
Date Tue, 29 Aug 2017 14:12:01 GMT

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

Vlad Gudikov commented on HIVE-11309:
-------------------------------------

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)

Mime
View raw message