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

Support quoted strings for environment variables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • None
    • None

    Description

      There are cases where it is necessary to allow for quoted string literals within environment variables values when passed via the yarn command line interface.

      For example, consider the follow environment variables for a MR map task.

      MODE=bar
      IMAGE_NAME=foo
      MOUNTS=/tmp/foo,/tmp/bar

      When running the MR job, these environment variables are supplied as a comma delimited string.

      -Dmapreduce.map.env="MODE=bar,IMAGE_NAME=foo,MOUNTS=/tmp/foo,/tmp/bar"

      In this case, MOUNTS will be parsed and added to the task environment as MOUNTS=/tmp/foo. Any attempts to quote the embedded comma separated value results in quote characters becoming part of the value, and parsing still breaks down at the comma.

      This issue is to allow for quoting the comma separated value (escaped double or single quote). This was mentioned on YARN-4595 and will impact YARN-5534 as well.

      Attachments

        1. YARN-6830.004.patch
          8 kB
          Jim Brennan
        2. YARN-6830.003.patch
          8 kB
          Jim Brennan
        3. YARN-6830.002.patch
          8 kB
          Jim Brennan
        4. YARN-6830.001.patch
          5 kB
          Shane Kumpf

        Issue Links

          Activity

            People

              jbrennan Jim Brennan
              shanekumpf@gmail.com Shane Kumpf
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: