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

Implement logic to keep docker image consistent in application that uses :latest tag

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Abandoned
    • None
    • None
    • None
    • None

    Description

      Docker image with latest tag can run in YARN cluster without any validation in node managers. If a image with latest tag is changed during containers launch. It might produce inconsistent results between nodes. This is surfaced toward end of development for YARN-9184 to keep docker image consistent within a job. One of the ideas to keep :latest tag consistent for a job, is to use docker image command to figure out the image id and use image id to propagate to rest of the container requests. There are some challenges to overcome:

      1. The latest tag does not exist on the node where first container starts. The first container will need to download the latest image, and find image ID. This can introduce lag time for other containers to start.
      2. If image id is used to start other container, container-executor may have problems to check if the image is coming from a trusted source. Both image name and ID must be supply through .cmd file to container-executor. However, hacker can supply incorrect image id and defeat container-executor security checks.

      If we can over come those challenges, it maybe possible to keep docker image consistent with one application.

      Attachments

        1. YARN-9292.001.patch
          7 kB
          Eric Yang
        2. YARN-9292.002.patch
          15 kB
          Eric Yang
        3. YARN-9292.003.patch
          15 kB
          Eric Yang
        4. YARN-9292.004.patch
          15 kB
          Eric Yang
        5. YARN-9292.005.patch
          16 kB
          Eric Yang
        6. YARN-9292.006.patch
          16 kB
          Eric Yang
        7. YARN-9292.007.patch
          16 kB
          Eric Yang
        8. YARN-9292.008.patch
          16 kB
          Eric Yang

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: