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

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

     [ 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: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org