[
https://issues.apache.org/jira/browse/HADOOP-11296?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14206748#comment-14206748
]
Vinayakumar B commented on HADOOP-11296:
----------------------------------------
[~iwasakims],
You can verify using following test code
{code}#!/bin/bash
function printValue(){
echo "Printing args : $@"
}
export -f printValue
echo "arg1 arg2" |
xargs -n 1 -P 10 -I {} bash -c -- 'printValue {} remaining args'{code}
output will be : {noformat}arg1 arg2 remaining args{noformat}
But expected is {noformat}arg1 remaining args
arg2 remaining args{noformat}
in the above test try replacing {code} echo "arg1 arg2" | {code} with
{code}echo "arg1
arg2" | {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: 3.0.0
> Reporter: Vinayakumar B
> Assignee: Vinayakumar B
> 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)