Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-9647

Docker launch fails when local-dirs or log-dirs is unhealthy.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 3.1.2
    • None
    • nodemanager
    • None

    Description

      my /etc/hadoop/conf/container-executor.cfg

      [docker]
         docker.allowed.ro-mounts=/data1/hadoop/yarn/local,/data2/hadoop/yarn/local
         docker.allowed.rw-mounts=/data1/hadoop/yarn/local,/data2/hadoop/yarn/local
      

      if /data2 is unhealthy, docker launch fails  although container can use /data1 as local-dir, log-dir

      error message is below

      [2019-06-25 14:55:26.168]Exception from container-launch. Container id: container_e50_1561100493387_5185_01_000597 Exit code: 29 Exception message: Launch container failed Shell error output: Could not determine real path of mount '/data2/hadoop/yarn/local' Could not determine real path of mount '/data2/hadoop/yarn/local' Unable to find permitted docker mounts on disk Error constructing docker command, docker error code=16, error message='Mount access error' Shell output: main : command provided 4 main : run as user is magnum main : requested yarn user is magnum Creating script paths... Creating local dirs... [2019-06-25 14:55:26.189]Container exited with a non-zero exit code 29. [2019-06-25 14:55:26.192]Container exited with a non-zero exit code 29. 
      

      root cause is that normalize_mounts() in docker-util.c return -1 because it cannot resolve real path of /data2/hadoop/yarn/local.(note that /data2 is disk fault at this point)
      however disk of nm local dirs and nm log dirs can fail at any time.
      docker launch should succeed if there are available local dirs and log dirs.

      Attachments

        1. YARN-9647.002.patch
          1 kB
          KWON BYUNGCHANG
        2. YARN-9647.001.patch
          1.0 kB
          KWON BYUNGCHANG

        Activity

          People

            magnum KWON BYUNGCHANG
            magnum KWON BYUNGCHANG
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated: