Acceldata
ODP

Last updated: Oct 16, 2026 13:34 UTC

Oozie

Update the Oozie Java 17 flags as shown below.

Advanced oozie-env -> oozie-env

File location: Log into the Ambari UI → Oozie → Configs → Advanced oozie-env -> oozie-env

#!/bin/bash
if [ -d "/usr/lib/bigtop-tomcat" ]; then
 export OOZIE_CONFIG=${OOZIE_CONFIG:-{{conf_dir}}}
 export CATALINA_BASE=${CATALINA_BASE:-{{oozie_server_dir}}}
 export CATALINA_TMPDIR=${CATALINA_TMPDIR:-/var/tmp/oozie}
 export OOZIE_CATALINA_HOME=/usr/lib/bigtop-tomcat
fi
#Set JAVA HOME
export JAVA_HOME={{java_home}}
export JRE_HOME=${JAVA_HOME}
# Set Oozie specific environment variables here.
# Settings for the Embedded Tomcat that runs Oozie
# Java System properties for Oozie should be specified in this variable
#
{% if java_version < 8 %}
export CATALINA_OPTS="$CATALINA_OPTS -Xmx{{oozie_heapsize}} -XX:MaxPermSize={{oozie_permsize}}"
{% else %}
export CATALINA_OPTS="$CATALINA_OPTS -Xms{{oozie_heapsize}} -Xmx{{oozie_heapsize}}"
{% if java_version >= 11 %}
{% if jvm_tuning_profile == 'azul_prime' %}
export OOZIE_JVM_TUNING_OPTS="-Xlog:gc*:file={{oozie_log_dir}}/oozie-gc.log:time,uptime:filecount=10,filesize=20M -XX:+UseTransparentHugePages -XX:CIMaxCompilerThreads=8 -XX:ProfileLogIn={{oozie_log_dir}}/oozie.profile -XX:ProfileLogOut={{oozie_log_dir}}/oozie.profile -XX:+UseZingMXBeans"
{% else %}
export OOZIE_JVM_TUNING_OPTS="-Xlog:gc*,gc+heap=info,gc+age=debug:file={{oozie_log_dir}}/oozie-gc.log:time,uptime:filecount=10,filesize=20M -XX:+UseG1GC"
{% endif %}
export CATALINA_OPTS="$CATALINA_OPTS ${OOZIE_JVM_TUNING_OPTS}"
{% endif %}
{% endif %}
{% if security_enabled %}
export KRB5_CONFIG={{krb5_conf_path}}
# CATALINA_OPTS is consumed by the legacy bigtop-tomcat launcher.
# JETTY_OPTS is consumed by the embedded-oozie-server (Oozie 5.x).
# OOZIE_CLIENT_OPTS is consumed by bin/oozie when the client CLI is invoked
# (e.g. the "oozie admin -status" alert; also any operator "oozie jobs ...").
# Set the krb5.conf sysprop on all three so every Oozie JVM spawned from
# this environment picks up the cluster-configured krb5.conf regardless of
# which launcher is in use; the JDK's sun.security.krb5.Config honors only
# -Djava.security.krb5.conf (it does not read the KRB5_CONFIG env var).
export CATALINA_OPTS="$CATALINA_OPTS -Djava.security.krb5.conf={{krb5_conf_path}}"
export JETTY_OPTS="$JETTY_OPTS -Djava.security.krb5.conf={{krb5_conf_path}}"
export OOZIE_CLIENT_OPTS="$OOZIE_CLIENT_OPTS -Djava.security.krb5.conf={{krb5_conf_path}}"
{% endif %}
# Oozie configuration file to load from Oozie configuration directory
#
# export OOZIE_CONFIG_FILE=oozie-site.xml
# Oozie logs directory
#
export OOZIE_LOG={{oozie_log_dir}}
# Oozie pid directory
#
export CATALINA_PID={{pid_file}}
# Oozie pid file
export JETTY_PID_FILE={{oozie_pid_dir}}/oozie.pid

#Location of the data for oozie
export OOZIE_DATA={{oozie_data_dir}}
# Oozie Log4J configuration file to load from Oozie configuration directory
#
# export OOZIE_LOG4J_FILE=oozie-log4j.properties
# Reload interval of the Log4J configuration file, in seconds
#
# export OOZIE_LOG4J_RELOAD=10
# The port Oozie server runs
#
export OOZIE_HTTP_PORT={{oozie_server_port}}
# The admin port Oozie server runs
#
export OOZIE_ADMIN_PORT={{oozie_server_admin_port}}
# The host name Oozie server runs on
#
# export OOZIE_HTTP_HOSTNAME=`hostname -f`
export OOZIE_BASE_URL={{oozie_base_url}}
# The base URL for callback URLs to Oozie
#
# export OOZIE_BASE_URL="http://{OOZIE_HTTP_PORT}/oozie"
export JAVA_LIBRARY_PATH={{hadoop_lib_home}}/native/Linux-{{architecture}}-64

# At least 1 minute of retry time to account for server downtime during
# upgrade/downgrade
export OOZIE_CLIENT_OPTS="${OOZIE_CLIENT_OPTS} -Doozie.connection.retry.count=5 "
{% if sqla_db_used or lib_dir_available %}
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:{{jdbc_libs_dir}}"
export JAVA_LIBRARY_PATH="$JAVA_LIBRARY_PATH:{{jdbc_libs_dir}}"
{% endif %}
{% if java_version > 11 %}
export JETTY_OPTS="${JETTY_OPTS} {{jvm_flags}}"
{% endif %}
 

Custom oozie-site -> jvm_flags

File location: Log into the Ambari UI → Oozie → Configs → Custom oozie-site -> jvm_flags
--add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.net=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/java.util.concurrent.atomic=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED