[ https://issues.apache.org/jira/browse/YARN-11078?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17495180#comment-17495180 ]
Sunil G commented on YARN-11078: -------------------------------- Hi [~gaurava] you may need to add a new profile flag for windows here with set command. > 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 > > 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.1#820001) --------------------------------------------------------------------- To unsubscribe, e-mail: yarn-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: yarn-issues-h...@hadoop.apache.org