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

When setting environment variables, can't use comma for a list of value in key = value pairs.

    XMLWordPrintableJSON

Details

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

    Description

      We can set environment variables using yarn.app.mapreduce.am.env, mapreduce.map.env, mapreduce.reduce.env.
      There is no problem if we use key=value pairs like X=Y, X=$Y.
      However If we want to set key=a list of value pair(e.g. X=Y,Z), we can’t.
      This is related to YARN-4595.

      The attached patch is based on YARN-3768.
      We can set environment variables like below.

      mapreduce.map.env="YARN_CONTAINER_RUNTIME_TYPE=docker,YARN_CONTAINER_RUNTIME_DOCKER_IMAGE=hadoop-docker,YARN_CONTAINER_RUNTIME_DOCKER_LOCAL_RESOURCE_MOUNTS=\"/dir1:/targetdir1,/dir2:/targetdir2\""
      

      Attachments

        1. YARN-6434.001.patch
          5 kB
          Jaeboo Jeong
        2. YARN-6434-trunk.001.patch
          5 kB
          Jaeboo Jeong

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Jaeboo Jaeboo Jeong
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: