You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Chris Nauroth (JIRA)" <ji...@apache.org> on 2013/11/09 20:12:17 UTC

[jira] [Commented] (YARN-1395) Distributed shell application master launched with debug flag can hang waiting for external ls process.

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

Chris Nauroth commented on YARN-1395:
-------------------------------------

The reason for this is that the external process never exits, because the parent process is not consuming stdout.  {{Shell#execCommand}} from hadoop-common already handles consuming the streams correctly, so we can switch to using that instead of working with the {{Process}} object directly.  I have a patch in progress.

> Distributed shell application master launched with debug flag can hang waiting for external ls process.
> -------------------------------------------------------------------------------------------------------
>
>                 Key: YARN-1395
>                 URL: https://issues.apache.org/jira/browse/YARN-1395
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: applications/distributed-shell
>    Affects Versions: 3.0.0, 2.2.0
>            Reporter: Chris Nauroth
>            Assignee: Chris Nauroth
>
> Distributed shell launched with the debug flag will run {{ApplicationMaster#dumpOutDebugInfo}}.  This method launches an external process to run ls and print the contents of the current working directory.  We've seen that this can cause the application master to hang on {{Process#waitFor}}.



--
This message was sent by Atlassian JIRA
(v6.1#6144)