From 2c604dc99f66969af42a4a336e29a11ee4e2afaf Mon Sep 17 00:00:00 2001 From: Jean-Marie Gervais Date: Tue, 3 Dec 2024 11:23:47 +0100 Subject: [PATCH] fix(ranger-admin): use local timezone for ranger-admin --- roles/ranger/common/templates/ranger-admin-services.sh.j2 | 1 - 1 file changed, 1 deletion(-) diff --git a/roles/ranger/common/templates/ranger-admin-services.sh.j2 b/roles/ranger/common/templates/ranger-admin-services.sh.j2 index c28aebf7..a3eaa925 100755 --- a/roles/ranger/common/templates/ranger-admin-services.sh.j2 +++ b/roles/ranger/common/templates/ranger-admin-services.sh.j2 @@ -48,7 +48,6 @@ JMX_OPTS="{{ jmx_common_opts }} {{ jmx_exporter_ra_opts }} " RANGER_LOGS_OPTS="-Dlog4j.configuration=file:{{ ranger_install_dir }}/conf/log4j.properties -Dranger.log.dir={{ ranger_log_dir }} -Dranger.log.file={{ ranger_admin_log_file }} -Dranger.root.logger={{ ranger_root_logger_level }},{{ ranger_root_logger }}" JAVA_OPTS="${RANGER_LOGS_OPTS} ${JAVA_OPTS} -XX:MetaspaceSize=100m -XX:MaxMetaspaceSize=200m -Xmx${ranger_admin_max_heap_size} -Xloggc:${XAPOLICYMGR_EWS_DIR}/logs/gc-worker.log -verbose:gc -XX:+PrintGCDetails" -if [[ ${JAVA_OPTS} != *"-Duser.timezone"* ]] ;then export JAVA_OPTS=" ${JAVA_OPTS} -Duser.timezone=UTC" ;fi if [ "$JAVA_HOME" != "" ]; then export PATH=$JAVA_HOME/bin:$PATH