Skip to content

Commit

Permalink
fix(ranger-admin): use local timezone for ranger-admin
Browse files Browse the repository at this point in the history
  • Loading branch information
giem-git committed Dec 3, 2024
1 parent efeefaf commit 2c604dc
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion roles/ranger/common/templates/ranger-admin-services.sh.j2
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2c604dc

Please sign in to comment.