You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Gautham Banasandra (Jira)" <ji...@apache.org> on 2022/02/20 09:00:00 UTC

[jira] [Created] (YARN-11078) Set env vars in a cross platform compatible way

Gautham Banasandra created YARN-11078:
-----------------------------------------

             Summary: Set env vars in a cross platform compatible way
                 Key: YARN-11078
                 URL: https://issues.apache.org/jira/browse/YARN-11078
             Project: Hadoop YARN
          Issue Type: Improvement
          Components: webapp
    Affects Versions: 3.4.0
            Reporter: Gautham Banasandra
            Assignee: Gautham Banasandra


Prior to running a node.js command, a TMPDIR environment variable is set - [hadoop/package.json at 11d144d2284be29da1f49e163db0763636dcf058 ยท apache/hadoop (github.com)|https://github.com/apache/hadoop/blob/11d144d2284be29da1f49e163db0763636dcf058/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-ui/src/main/webapp/package.json#L11-L13]

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

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 

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

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



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org