hadoop-yarn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jaeboo Jeong (JIRA)" <j...@apache.org>
Subject [jira] [Created] (YARN-6495) check docker container's exit code when writing to cgroup task files
Date Wed, 19 Apr 2017 12:34:41 GMT
Jaeboo Jeong created YARN-6495:

             Summary: check docker container's exit code when writing to cgroup task files
                 Key: YARN-6495
                 URL: https://issues.apache.org/jira/browse/YARN-6495
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: nodemanager
            Reporter: Jaeboo Jeong

If I execute simple command like date on docker container, the application failed to complete

for example, 
$ yarn  jar $HADOOP_HOME/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.1.jar
-shell_command "date" -jar $HADOOP_HOME/share/hadoop/yarn/hadoop-yarn-applications-distributedshell-2.7.1.jar
-num_containers 1 -timeout 3600000

17/04/12 00:16:40 INFO distributedshell.Client: Application did finished unsuccessfully. YarnState=FINISHED,
DSFinalStatus=FAILED. Breaking monitoring loop
17/04/12 00:16:40 ERROR distributedshell.Client: Application failed to complete successfully

The error log is like below.
Failed to write pid to file /cgroup_parent/cpu/hadoop-yarn/container_xxxx/tasks - No such

When writing pid to cgroup tasks, container-executor doesn’t check docker container’s
If the container finished very quickly, we can’t write pid to cgroup tasks, and it is not
So container-executor needs to check docker container’s exit code during writing pid to
cgroup tasks.

This message was sent by Atlassian JIRA

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

View raw message