[ 
https://issues.apache.org/jira/browse/RANGER-1249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Pradeep Agrawal updated RANGER-1249:
------------------------------------
    Attachment: RANGER-1249-2.patch

> Ranger admin service should run with 'UTC' default timezone
> -----------------------------------------------------------
>
>                 Key: RANGER-1249
>                 URL: https://issues.apache.org/jira/browse/RANGER-1249
>             Project: Ranger
>          Issue Type: Bug
>          Components: Ranger
>    Affects Versions: 0.6.0, 0.7.0
>            Reporter: Pradeep Agrawal
>            Assignee: Pradeep Agrawal
>         Attachments: RANGER-1249-2.patch
>
>
> 'ranger-admin-services.sh' script usage below command to start ranger.
> {code:java}nohup  java -Dproc_rangeradmin ${JAVA_OPTS} 
> -Dlogdir=${RANGER_ADMIN_LOG_DIR} -Dcatalina.base=${XAPOLICYMGR_EWS_DIR} -cp 
> "${XAPOLICYMGR_EWS_DIR}/webapp/WEB-INF/classes/conf:${XAPOLICYMGR_EWS_DIR}/lib/*:${RANGER_JAAS_LIB_DIR}/*:${RANGER_JAAS_CONF_DIR}:${JAVA_HOME}/lib/*:${RANGER_HADOOP_CONF_DIR}/*:$CLASSPATH"
>  org.apache.ranger.server.tomcat.EmbeddedServer > 
> ${RANGER_ADMIN_LOG_DIR}/catalina.out 2>&1 &
> {code}
> Above command usage JAVA_OPTS environment variable. 
> if JAVA_OPTS value doesn't contain '-Duser.timezone=UTC' then Ranger admin 
> runs in local timezone rather UTC which causes timezone issue in viewing 
> audit logs at UI end as ranger admin returns audit event time in local 
> timezone rather in UTC format.



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

Reply via email to