Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-3611 Support Docker Containers In LinuxContainerExecutor
  3. YARN-7916

Remove call to docker logs on failure in container-executor

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.1.0
    • None
    • Reviewed

    Description

      If a Docker container fails with a non-zero exit code, container-executor attempts to run a docker logs -tail=250 container_name to provide more details on why the container failed. While the idea is good, the current implementation will fail for most containers as they are leveraging a launch script whose output will be redirected to a file. The -tail option throws an error if no log output is available for the container, resulting in the docker logs command returning rc=1 in most cases.

      I propose we remove this code from container-executor. Alternative approaches to handle logging can be explored as part of supporting an image's entrypoint.

      Attachments

        1. YARN-7916.001.patch
          3 kB
          Shane Kumpf

        Activity

          People

            shanekumpf@gmail.com Shane Kumpf
            shanekumpf@gmail.com Shane Kumpf
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: