Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-1249

Ranger admin service should run with 'UTC' default timezone

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.6.0, 0.7.0
    • Fix Version/s: 0.7.0
    • Component/s: Ranger
    • Labels:
      None

      Description

      'ranger-admin-services.sh' script usage below command to start ranger.

      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 &
      

      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.

        Attachments

          Activity

            People

            • Assignee:
              pradeep Pradeep Agrawal
              Reporter:
              pradeep Pradeep Agrawal

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment