You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Vinayakumar B (JIRA)" <ji...@apache.org> on 2014/11/11 11:53:33 UTC
[jira] [Updated] (HADOOP-11296) hadoop-daemons.sh throws 'host1:
bash: host3: command not found...'
[ https://issues.apache.org/jira/browse/HADOOP-11296?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Vinayakumar B updated HADOOP-11296:
-----------------------------------
Attachment: HADOOP-11296-001.patch
Issue was 'xargs' will consider full line of input as one argument when it reads from stdin/pipe.
in {{hadoop-functions.sh#hadoop_connect_to_hosts}} {{SLAVE_NAMES}} was space separated hostnames in one line. So it was considering whole list as one host.
Here is the code snippet.
{code} echo "${SLAVE_NAMES}" | \
xargs -n 1 -P"${HADOOP_SSH_PARALLEL}" \
-I {} bash -c -- "hadoop_actual_ssh {} ${params}"{code}
> hadoop-daemons.sh throws 'host1: bash: host3: command not found...'
> -------------------------------------------------------------------
>
> Key: HADOOP-11296
> URL: https://issues.apache.org/jira/browse/HADOOP-11296
> Project: Hadoop Common
> Issue Type: Bug
> Components: scripts
> Affects Versions: 2.5.1
> Reporter: Vinayakumar B
> Assignee: Vinayakumar B
> Priority: Critical
> Attachments: HADOOP-11296-001.patch
>
>
> *hadoop-daemons.sh* throws command not found.
> {noformat}[vinay@host2 install]$ /home/vinay/install/hadoop/sbin/hadoop-[vinay@host2 install]$ /home/vinay/install/hadoop/sbin/hadoop-daemons.sh --config /home/vinay/install/conf --hostnames 'host1 host2' start namenode
> host1: bash: host2: command not found...
> {noformat}
> *hadoop-daemons.sh* is mainly used to start the cluster, for ex: start-dfs.sh
> Without this cluster will not be able to start.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)