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 "Allen Wittenauer (JIRA)" <ji...@apache.org> on 2015/03/04 23:40:39 UTC

[jira] [Comment Edited] (HADOOP-11668) start-dfs.sh and stop-dfs.sh no longer works in HA mode after --slaves shell option

    [ https://issues.apache.org/jira/browse/HADOOP-11668?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14347709#comment-14347709 ] 

Allen Wittenauer edited comment on HADOOP-11668 at 3/4/15 10:40 PM:
--------------------------------------------------------------------

-02:
* This fixes hadoop-daemons.sh and yarn-daemons.sh so that they work with multiple hosts.

The problem was two fold:
* We were not preserving quotes around parameters that contained $IFS due to lack of quoting around the array deletion
* The then deleted array elements were retained and show up as an empty argument.


was (Author: aw):
-02:
* This fixes hadoop-daemons.sh and yarn-daemons.sh so that they work with multiple hosts.

The problem was two fold:
* We were preserving quotes around parameters that contained $IFS due to lack of quoting around the array deletion
* The then deleted array elements were retained and show up as an empty argument.

> start-dfs.sh and stop-dfs.sh no longer works in HA mode after --slaves shell option
> -----------------------------------------------------------------------------------
>
>                 Key: HADOOP-11668
>                 URL: https://issues.apache.org/jira/browse/HADOOP-11668
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: scripts
>            Reporter: Vinayakumar B
>            Assignee: Allen Wittenauer
>         Attachments: HADOOP-11668-01.patch, HADOOP-11668-02.patch
>
>
> After introduction of "--slaves" option for the scripts, start-dfs.sh and stop-dfs.sh will no longer work in HA mode.
> This is due to multiple hostnames passed for '--hostnames' delimited with space.
> These hostnames are treated as commands and script fails.
> So, instead of delimiting with space, delimiting with comma(,) before passing to hadoop-daemons.sh will solve the problem.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)