Acceldata
ODP

Druid

Update the Druid Java-17 flags as shown below.

Advanced druid-env

File location: Log on to the Ambari UI → Druid → configs → Advanced druid-env.

Update the following configurations:

druid.broker.jvm.opts, druid.coordinator.jvm.opts, druid.historical.jvm.opts, druid.middlemanager.jvm.opts, druid.overlord.jvm.opts, druid.router.jvm.opts
With:
--add-exports=java.base/jdk.internal.misc=ALL-UNNAMED --add-exports=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.nio=ALL-UNNAMED --add-opens=java.base/sun.nio.ch=ALL-UNNAMED --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=jdk.management/com.sun.management.internal=ALL-UNNAMED -Djava.security.auth.login.config={druid_jaas_file}

Update Druid Environment Template

In Ambari UI → Druid → Configs → Advanced druid-env, update the following in the druid-env template:

#!/bin/bash
# Set DRUID specific environment variables here.
# Define paths for the log files and heap dumps
# The java implementation to use.
export JAVA_HOME={{java8_home}}
export PATH=$JAVA_HOME/bin:$PATH
export DRUID_PID_DIR={{druid_pid_dir}}
export DRUID_LOG_DIR={{druid_log_dir}}
export DRUID_CONF_DIR={{druid_conf_dir}}
export DRUID_LIB_DIR={{druid_home}}/lib
export HADOOP_CONF_DIR={{hadoop_conf_dir}}
##export ssl password variables:
export DRUID_CLIENT_HTTPS_TRUSTSTOREPASSWORD=`{{password_command}} -a "druid.client.https.trustStorePassword" `
export DRUID_SERVER_HTTPS_KEYSTOREPASSWORD=`{{password_command}} -a "druid.server.https.keyStorePassword"`
##export metadata password variable:
export DRUID_METADATA_STORAGE_CONNECTOR_PASSWORD=`{{password_command}} -a "druid.metadata.storage.connector.password"`