HADOOP-10993. Dump java command line to *.out file (Contributed by Kengo Seki)

This commit is contained in:
Vinayakumar B 2015-05-14 15:24:35 +05:30
parent 0daa5ada68
commit ffbb574623
2 changed files with 15 additions and 0 deletions

View File

@ -215,6 +215,9 @@ Trunk (Unreleased)
HADOOP-11590. Update sbin commands and documentation to use new --slaves HADOOP-11590. Update sbin commands and documentation to use new --slaves
option (aw) option (aw)
HADOOP-10993. Dump java command line to *.out file
(Kengo Seki via vinayakumarb)
BUG FIXES BUG FIXES
HADOOP-11473. test-patch says "-1 overall" even when all checks are +1 HADOOP-11473. test-patch says "-1 overall" even when all checks are +1

View File

@ -1148,6 +1148,10 @@ function hadoop_java_exec
hadoop_debug "Final CLASSPATH: ${CLASSPATH}" hadoop_debug "Final CLASSPATH: ${CLASSPATH}"
hadoop_debug "Final HADOOP_OPTS: ${HADOOP_OPTS}" hadoop_debug "Final HADOOP_OPTS: ${HADOOP_OPTS}"
hadoop_debug "Final JAVA_HOME: ${JAVA_HOME}"
hadoop_debug "java: ${JAVA}"
hadoop_debug "Class name: ${class}"
hadoop_debug "Command line options: $*"
export CLASSPATH export CLASSPATH
#shellcheck disable=SC2086 #shellcheck disable=SC2086
@ -1174,6 +1178,10 @@ function hadoop_start_daemon
hadoop_debug "Final CLASSPATH: ${CLASSPATH}" hadoop_debug "Final CLASSPATH: ${CLASSPATH}"
hadoop_debug "Final HADOOP_OPTS: ${HADOOP_OPTS}" hadoop_debug "Final HADOOP_OPTS: ${HADOOP_OPTS}"
hadoop_debug "Final JAVA_HOME: ${JAVA_HOME}"
hadoop_debug "java: ${JAVA}"
hadoop_debug "Class name: ${class}"
hadoop_debug "Command line options: $*"
# this is for the non-daemon pid creation # this is for the non-daemon pid creation
#shellcheck disable=SC2086 #shellcheck disable=SC2086
@ -1300,6 +1308,10 @@ function hadoop_start_secure_daemon
hadoop_debug "Final CLASSPATH: ${CLASSPATH}" hadoop_debug "Final CLASSPATH: ${CLASSPATH}"
hadoop_debug "Final HADOOP_OPTS: ${HADOOP_OPTS}" hadoop_debug "Final HADOOP_OPTS: ${HADOOP_OPTS}"
hadoop_debug "Final JSVC_HOME: ${JSVC_HOME}"
hadoop_debug "jsvc: ${jsvc}"
hadoop_debug "Class name: ${class}"
hadoop_debug "Command line options: $*"
#shellcheck disable=SC2086 #shellcheck disable=SC2086
echo $$ > "${privpidfile}" 2>/dev/null echo $$ > "${privpidfile}" 2>/dev/null