HADOOP-16289. Allow extra jsvc startup option in hadoop_start_secure_daemon in hadoop-functions.sh. Contributed by Siyao Meng.

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
This commit is contained in:
Siyao Meng 2019-05-06 15:47:00 -07:00 committed by Wei-Chiu Chuang
parent 597fa47ad1
commit 93f2283a69

View File

@ -1929,6 +1929,7 @@ function hadoop_start_secure_daemon
hadoop_debug "Final HADOOP_OPTS: ${HADOOP_OPTS}" hadoop_debug "Final HADOOP_OPTS: ${HADOOP_OPTS}"
hadoop_debug "Final JSVC_HOME: ${JSVC_HOME}" hadoop_debug "Final JSVC_HOME: ${JSVC_HOME}"
hadoop_debug "jsvc: ${jsvc}" hadoop_debug "jsvc: ${jsvc}"
hadoop_debug "Final HADOOP_DAEMON_JSVC_EXTRA_OPTS: ${HADOOP_DAEMON_JSVC_EXTRA_OPTS}"
hadoop_debug "Class name: ${class}" hadoop_debug "Class name: ${class}"
hadoop_debug "Command line options: $*" hadoop_debug "Command line options: $*"
@ -1941,6 +1942,7 @@ function hadoop_start_secure_daemon
# shellcheck disable=SC2086 # shellcheck disable=SC2086
exec "${jsvc}" \ exec "${jsvc}" \
"-Dproc_${daemonname}" \ "-Dproc_${daemonname}" \
${HADOOP_DAEMON_JSVC_EXTRA_OPTS} \
-outfile "${daemonoutfile}" \ -outfile "${daemonoutfile}" \
-errfile "${daemonerrfile}" \ -errfile "${daemonerrfile}" \
-pidfile "${daemonpidfile}" \ -pidfile "${daemonpidfile}" \