HADOOP-13089. hadoop distcp adds client opts twice when dynamic
Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/9b7053d2 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/9b7053d2 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/9b7053d2 Branch: refs/heads/HADOOP-12930 Commit: 9b7053d2ad9dbc15f4aa4ddebb3cd9290268823e Parents: 21451f8 Author: Allen Wittenauer <a...@apache.org> Authored: Wed May 4 10:50:15 2016 -0700 Committer: Allen Wittenauer <a...@apache.org> Committed: Sun May 15 07:50:15 2016 -0700 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/src/main/bin/hadoop | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/9b7053d2/hadoop-common-project/hadoop-common/src/main/bin/hadoop ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop b/hadoop-common-project/hadoop-common/src/main/bin/hadoop index e4df229..e8e58f2 100755 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop @@ -167,6 +167,10 @@ function hadoopcmd_case fi ;; esac + + # Always respect HADOOP_OPTS and HADOOP_CLIENT_OPTS + hadoop_debug "Appending HADOOP_CLIENT_OPTS onto HADOOP_OPTS" + HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_CLIENT_OPTS}" } # This script runs the hadoop core commands. @@ -209,10 +213,6 @@ if [[ ${HADOOP_SLAVE_MODE} = true ]]; then exit $? fi -# Always respect HADOOP_OPTS and HADOOP_CLIENT_OPTS -hadoop_debug "Appending HADOOP_CLIENT_OPTS onto HADOOP_OPTS" -HADOOP_OPTS="${HADOOP_OPTS} ${HADOOP_CLIENT_OPTS}" - if [[ -n "${HADOOP_SUBCMD_SECURESERVICE}" ]]; then HADOOP_SECURE_USER="${HADOOP_SUBCMD_SECUREUSER}" hadoop_verify_secure_prereq --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-commits-h...@hadoop.apache.org