Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-8472 YARN Container Phase 2
  3. YARN-9486

Docker container exited with failure does not get clean up correctly

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.0
    • 3.3.0
    • None
    • None

    Description

      When docker container encounters error and exit prematurely (EXITED_WITH_FAILURE), ContainerCleanup does not remove container, instead we get messages that look like this:

      java.io.IOException: Could not find nmPrivate/application_1555111445937_0008/container_1555111445937_0008_01_000007//container_1555111445937_0008_01_000007.pid in any of the directories
      2019-04-15 20:42:16,454 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl: Container container_1555111445937_0008_01_000007 transitioned from RELAUNCHING to EXITED_WITH_FAILURE
      2019-04-15 20:42:16,455 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerCleanup: Cleaning up container container_1555111445937_0008_01_000007
      2019-04-15 20:42:16,455 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.launcher.ContainerCleanup: Container container_1555111445937_0008_01_000007 not launched. No cleanup needed to be done
      2019-04-15 20:42:16,455 WARN org.apache.hadoop.yarn.server.nodemanager.NMAuditLogger: USER=hbase	OPERATION=Container Finished - Failed	TARGET=ContainerImpl	RESULT=FAILURE	DESCRIPTION=Container failed with state: EXITED_WITH_FAILURE	APPID=application_1555111445937_0008	CONTAINERID=container_1555111445937_0008_01_000007
      2019-04-15 20:42:16,458 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.container.ContainerImpl: Container container_1555111445937_0008_01_000007 transitioned from EXITED_WITH_FAILURE to DONE
      2019-04-15 20:42:16,458 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.application.ApplicationImpl: Removing container_1555111445937_0008_01_000007 from application application_1555111445937_0008
      2019-04-15 20:42:16,458 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.monitor.ContainersMonitorImpl: Stopping resource-monitoring for container_1555111445937_0008_01_000007
      2019-04-15 20:42:16,458 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.logaggregation.AppLogAggregatorImpl: Considering container container_1555111445937_0008_01_000007 for log-aggregation
      2019-04-15 20:42:16,804 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl: Getting container-status for container_1555111445937_0008_01_000007
      2019-04-15 20:42:16,804 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl: Getting localization status for container_1555111445937_0008_01_000007
      2019-04-15 20:42:16,804 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl: Returning ContainerStatus: [ContainerId: container_1555111445937_0008_01_000007, ExecutionType: GUARANTEED, State: COMPLETE, Capability: <memory:1024, vCores:1>, Diagnostics: ..., ExitStatus: -1, IP: null, Host: null, ExposedPorts: , ContainerSubState: DONE]
      2019-04-15 20:42:18,464 INFO org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl: Removed completed containers from NM context: [container_1555111445937_0008_01_000007]
      2019-04-15 20:43:50,476 INFO org.apache.hadoop.yarn.server.nodemanager.containermanager.ContainerManagerImpl: Stopping container with container Id: container_1555111445937_0008_01_000007
      

      There is no docker rm command performed.

      Attachments

        1. YARN-9486.005.patch
          5 kB
          Eric Yang
        2. YARN-9486.004.patch
          5 kB
          Eric Yang
        3. YARN-9486.003.patch
          6 kB
          Eric Yang
        4. YARN-9486.002.patch
          3 kB
          Eric Yang
        5. YARN-9486.001.patch
          3 kB
          Eric Yang

        Activity

          People

            eyang Eric Yang
            eyang Eric Yang
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: