[ 
https://issues.apache.org/jira/browse/YARN-11078?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Gautham Banasandra resolved YARN-11078.
---------------------------------------
    Resolution: Fixed

Merged PR https://github.com/apache/hadoop/pull/4432 to trunk.

> 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
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 40m
>  Remaining Estimate: 0h
>
> 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 variables. 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.7#820007)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to