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

Ranger admin service should run with 'UTC' default timezone

    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

        1. RANGER-1249-2.patch
          1 kB
          Pradeep Agrawal

          Issue Links

            Activity

              People

              • Assignee:
                pradeep.agrawal Pradeep Agrawal
                Reporter:
                pradeep.agrawal Pradeep Agrawal
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: