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

Set env vars in a cross platform compatible way

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.4.0
    • None
    • webapp

    Description

      Prior to running a node.js command, a TMPDIR environment variable is set - hadoop/package.json at 11d144d2284be29da1f49e163db0763636dcf058 ยท apache/hadoop (github.com)

      "build:mvn": "TMPDIR=tmp node/node ./node_modules/ember-cli/bin/ember build -prod"
      

      This causes the command execution to fail on Windows since environment variables are set using the set command on Windows. The equivalent command on Windows would be -

      "build:mvn": "set TMPDIR=tmp; node/node ./node_modules/ember-cli/bin/ember build -prod"
      

      There's no cross platform way to set the environment variables. Thus, we need to be able to chose either of the commands based on the platform where Hadoop gets built on.

      Attachments

        Issue Links

          Activity

            People

              gaurava Gautham Banasandra
              gaurava Gautham Banasandra
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m