You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Velmurugan Periasamy (JIRA)" <ji...@apache.org> on 2017/03/19 22:04:41 UTC
[jira] [Updated] (RANGER-1105) Ranger should provide configuration
to do hdfs audit file roll over at absolute time
[ https://issues.apache.org/jira/browse/RANGER-1105?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Velmurugan Periasamy updated RANGER-1105:
-----------------------------------------
Fix Version/s: 0.7.0
> Ranger should provide configuration to do hdfs audit file roll over at absolute time
> ------------------------------------------------------------------------------------
>
> Key: RANGER-1105
> URL: https://issues.apache.org/jira/browse/RANGER-1105
> Project: Ranger
> Issue Type: Bug
> Affects Versions: 0.7.0
> Reporter: Ramesh Mani
> Assignee: Ramesh Mani
> Fix For: 0.7.0
>
> Attachments: RANGER-1105.patch
>
>
> Ranger should provide configuration to have do hdfs audit file roll over at absolute time. Currently parameter "xasecure.audit.destination.hdfs.file.rollover.sec" is used for rollover and the files are closed on relative time using this value from the start of the component. Instead we provide "xasecure.audit.destination.hdfs.file.rollover.period" which take time period with suffix -"m" - minutes, "h" - hours , "d" - days , "w" - weeks, "M" - month, "y" -years.
> eg.
> if xasecure.audit.destination.hdfs.file.rollover.period - 1d - ranger audit file in hdfs would be rolled over at 1 day window i.e file will be closed exactly at 23:59:59 hour for that day and a new file will be opened for 00:00:00 hour. In this way we have file content which is exactly for that time period window in this case 1 day.
> xasecure.audit.destination.hdfs.file.rollover.period - 1d for 1 day rollover period
> xasecure.audit.destination.hdfs.file.rollover.period - 2d for 2 day rollover period
> xasecure.audit.destination.hdfs.file.rollover.period - 10m for every 10 minutes rollover period.
> xasecure.audit.destination.hdfs.file.rollover.period - 1w for every week rollover window
> xasecure.audit.destination.hdfs.file.rollover.period -1M for one month rollover window.
> if this is param is not specified, it uses "xasecure.audit.destination.hdfs.file.rollover.sec" to compute the absolute window.
> By default this is 1day meaning if both the parameters are not specified the rollover window would be 1day.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)