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 "Bibin A Chundatt (JIRA)" <ji...@apache.org> on 2018/07/26 04:51:00 UTC

[jira] [Commented] (YARN-8407) Container launch exception in AM log should be printed in ERROR level

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

Bibin A Chundatt commented on YARN-8407:
----------------------------------------

[~yeshavora]

Few minor comments

# Please handle formatting
# Use Stringbuilder for creating message.

> Container launch exception in AM log should be printed in ERROR level
> ---------------------------------------------------------------------
>
>                 Key: YARN-8407
>                 URL: https://issues.apache.org/jira/browse/YARN-8407
>             Project: Hadoop YARN
>          Issue Type: Bug
>            Reporter: Yesha Vora
>            Assignee: Yesha Vora
>            Priority: Major
>         Attachments: YARN-8407.001.patch
>
>
> when a container launch is failing due to docker image not available is logged as INFO level in AM log. 
> Container launch failure should be logged as ERROR.
> Steps:
> launch httpd yarn-service application with invalid docker image
>  
> {code:java}
> 2018-06-07 01:51:32,966 [Component  dispatcher] INFO  instance.ComponentInstance - [COMPINSTANCE httpd-0 : container_e05_1528335963594_0001_01_000002]: container_e05_1528335963594_0001_01_000002 completed. Reinsert back to pending list and requested a new container.
> exitStatus=-1, diagnostics=[2018-06-07 01:51:02.363]Exception from container-launch.
> Container id: container_e05_1528335963594_0001_01_000002
> Exit code: 7
> Exception message: Launch container failed
> Shell error output: Unable to find image 'xxx/httpd:0.1' locally
> Trying to pull repository xxx/httpd ...
> /usr/bin/docker-current: Get https://xxx/v1/_ping: dial tcp: lookup xxx on yyy: no such host.
> See '/usr/bin/docker-current run --help'.
> Shell output: main : command provided 4
> main : run as user is hbase
> main : requested yarn user is hbase
> Creating script paths...
> Creating local dirs...
> Getting exit code file...
> Changing effective user to root...
> Wrote the exit code 7 to /grid/0/hadoop/yarn/local/nmPrivate/application_1528335963594_0001/container_e05_1528335963594_0001_01_000002/container_e05_1528335963594_0001_01_000002.pid.exitcode
> [2018-06-07 01:51:02.393]Diagnostic message from attempt :
> [2018-06-07 01:51:02.394]Container exited with a non-zero exit code 7. Last 4096 bytes of stderr.txt :
> [2018-06-07 01:51:32.428]Could not find nmPrivate/application_1528335963594_0001/container_e05_1528335963594_0001_01_000002//container_e05_1528335963594_0001_01_000002.pid in any of the directories
> 2018-06-07 01:51:32,966 [Component  dispatcher] INFO  instance.ComponentInstance - [COMPINSTANCE httpd-0 : container_e05_1528335963594_0001_01_000002] Transitioned from STARTED to INIT on STOP event{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org