Return-Path: X-Original-To: apmail-hadoop-common-commits-archive@www.apache.org Delivered-To: apmail-hadoop-common-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 805AD106AA for ; Wed, 3 Dec 2014 05:23:55 +0000 (UTC) Received: (qmail 30310 invoked by uid 500); 3 Dec 2014 05:23:36 -0000 Delivered-To: apmail-hadoop-common-commits-archive@hadoop.apache.org Received: (qmail 30182 invoked by uid 500); 3 Dec 2014 05:23:36 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 27644 invoked by uid 99); 3 Dec 2014 05:23:34 -0000 Received: from tyr.zones.apache.org (HELO tyr.zones.apache.org) (140.211.11.114) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Dec 2014 05:23:34 +0000 Received: by tyr.zones.apache.org (Postfix, from userid 65534) id A41B0A077D8; Wed, 3 Dec 2014 05:23:34 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: vinayakumarb@apache.org To: common-commits@hadoop.apache.org Date: Wed, 03 Dec 2014 05:24:20 -0000 Message-Id: <4e5df4f4939142ba8bc8df9df0e233c8@git.apache.org> In-Reply-To: <1d780480d3a947b5bd82f2b6d1bd67f3@git.apache.org> References: <1d780480d3a947b5bd82f2b6d1bd67f3@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [48/50] [abbrv] hadoop git commit: HADOOP-11296. hadoop-daemons.sh throws 'host1: bash: host3: command not found...' (Contributed by Vinayakumar B) HADOOP-11296. hadoop-daemons.sh throws 'host1: bash: host3: command not found...' (Contributed by Vinayakumar B) Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/92ce6eda Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/92ce6eda Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/92ce6eda Branch: refs/heads/HDFS-EC Commit: 92ce6eda920a1bab74df68c0badb4f06728fc177 Parents: 3d48ad7 Author: Vinayakumar B Authored: Wed Dec 3 10:07:43 2014 +0530 Committer: Vinayakumar B Committed: Wed Dec 3 10:07:43 2014 +0530 ---------------------------------------------------------------------- hadoop-common-project/hadoop-common/CHANGES.txt | 3 +++ .../hadoop-common/src/main/bin/hadoop-functions.sh | 6 ++++++ 2 files changed, 9 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/92ce6eda/hadoop-common-project/hadoop-common/CHANGES.txt ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index 10c6d76..2f17f22 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -355,6 +355,9 @@ Trunk (Unreleased) HADOOP-11298. slaves.sh and stop-all.sh are missing slashes (aw) + HADOOP-11296. hadoop-daemons.sh throws 'host1: bash: host3: + command not found...' (vinayakumarb) + OPTIMIZATIONS HADOOP-7761. Improve the performance of raw comparisons. (todd) http://git-wip-us.apache.org/repos/asf/hadoop/blob/92ce6eda/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh ---------------------------------------------------------------------- diff --git a/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh b/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh index b5d4b1c..2b56634 100644 --- a/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh +++ b/hadoop-common-project/hadoop-common/src/main/bin/hadoop-functions.sh @@ -273,6 +273,12 @@ function hadoop_connect_to_hosts # moral of the story: just use pdsh. export -f hadoop_actual_ssh export HADOOP_SSH_OPTS + + # xargs is used with option -I to replace the placeholder in arguments + # list with each hostname read from stdin/pipe. But it consider one + # line as one argument while reading from stdin/pipe. So place each + # hostname in different lines while passing via pipe. + SLAVE_NAMES=$(echo "$SLAVE_NAMES" | tr ' ' '\n' ) echo "${SLAVE_NAMES}" | \ xargs -n 1 -P"${HADOOP_SSH_PARALLEL}" \ -I {} bash -c -- "hadoop_actual_ssh {} ${params}"