Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-2242

LinuxTaskController doesn't properly escape environment variables

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.22.0
    • None
    • task-controller
    • None

    Description

      LinuxTaskController currently just writes "export FOO=bar" pairs into taskjvm.sh, which fails if the value has multiple words or contains a space. This is causing TestDebugScriptWithLinuxTaskController among others to fail on trunk with the following message:

      export: 1: -Dhadoop.tasklog.iscleanup: bad variable name
      

      since it generated a taskjvm.sh including the following:

      export HADOOP_CLIENT_OPTS=-Dhadoop.tasklog.taskid=attempt_20110104180935141_0001_m_000001_0 -Dhadoop.tasklog.iscleanup=false -Dhadoop.tasklog.totalLogFileSize=0
      

      Attachments

        1. mapreduce-2242.txt
          3 kB
          Todd Lipcon

        Issue Links

          Activity

            People

              tlipcon Todd Lipcon
              tlipcon Todd Lipcon
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: