Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-522 [Umbrella] Better reporting for crashed/Killed AMs and Containers
  3. YARN-5219

When an export var command fails in launch_container.sh, the full container launch should fail

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0-alpha1
    • 2.9.0, 3.0.0-beta1
    • None
    • None
    • Reviewed

    Description

      Today, a container fails if certain files fail to localize. However, if certain env vars fail to get setup properly either due to bugs in the yarn application or misconfiguration, the actual process launch still gets triggered. This results in either confusing error messages if the process fails to launch or worse yet the process launches but then starts behaving wrongly if the env var is used to control some behavioral aspects.

      In this scenario, the issue was reproduced by trying to do export abc="${foo.bar}" which is invalid as var names cannot contain "." in bash.

      Attachments

        1. YARN-5219.001.patch
          3 kB
          Sunil G
        2. YARN-5219.003.patch
          10 kB
          Sunil G
        3. YARN-5219.004.patch
          9 kB
          Sunil G
        4. YARN-5219.005.patch
          9 kB
          Sunil G
        5. YARN-5219.006.patch
          8 kB
          Sunil G
        6. YARN-5219.007.patch
          8 kB
          Sunil G
        7. YARN-5219-branch-2.001.patch
          12 kB
          Sunil G

        Issue Links

          Activity

            People

              sunilg Sunil G
              hitesh Hitesh Shah
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: