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:10:00 UTC
[jira] [Commented] (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:comment-tabpanel&focusedCommentId=17495107#comment-17495107 ]
Gautham Banasandra commented on YARN-11078:
-------------------------------------------
Hi [~sunilg],
I see that you had made this change. Any suggestion on how we'll be able to do this? Would it be possible to set the environment variables in maven pom.xml?
> 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org