Skip to content

Commit 93f2283

Browse files
smengcljojochuang
authored andcommitted
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 <[email protected]>
1 parent 597fa47 commit 93f2283

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1929,6 +1929,7 @@ function hadoop_start_secure_daemon
19291929
hadoop_debug "Final HADOOP_OPTS: ${HADOOP_OPTS}"
19301930
hadoop_debug "Final JSVC_HOME: ${JSVC_HOME}"
19311931
hadoop_debug "jsvc: ${jsvc}"
1932+
hadoop_debug "Final HADOOP_DAEMON_JSVC_EXTRA_OPTS: ${HADOOP_DAEMON_JSVC_EXTRA_OPTS}"
19321933
hadoop_debug "Class name: ${class}"
19331934
hadoop_debug "Command line options: $*"
19341935

@@ -1941,6 +1942,7 @@ function hadoop_start_secure_daemon
19411942
# shellcheck disable=SC2086
19421943
exec "${jsvc}" \
19431944
"-Dproc_${daemonname}" \
1945+
${HADOOP_DAEMON_JSVC_EXTRA_OPTS} \
19441946
-outfile "${daemonoutfile}" \
19451947
-errfile "${daemonerrfile}" \
19461948
-pidfile "${daemonpidfile}" \

0 commit comments

Comments
 (0)