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

Thejas M Nair commented on HIVE-15260:
--------------------------------------

Looks like the behavior of RollingFileAppender is to rollover the files based 
on size, not on the date. I am not sure if we want to change the behavior in 
the hive1 line as we strive for backward compatibility with changes there. Is 
there any straightforward way to delete the old files without changing the date 
based rolling of log files ?

Updating PidDailyRollingFileAppender is optional as it seems to be targeted at 
the hive-cli use case, which is not likely to run for days and require rollover 
of log files.


> Auto delete old log files of hive services
> ------------------------------------------
>
>                 Key: HIVE-15260
>                 URL: https://issues.apache.org/jira/browse/HIVE-15260
>             Project: Hive
>          Issue Type: Bug
>          Components: HiveServer2, Metastore
>            Reporter: Thejas M Nair
>            Assignee: anishek
>
> Hive log4j settings rotate the old log files by date, but they don't delete 
> the old log files.
> It would be good to delete the old log files so that the space used doesn't 
> keep increasing for ever.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to