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 "Ravindra Sandaruwan Ranaweera (JIRA)" <ji...@apache.org> on 2017/04/05 09:04:42 UTC
[jira] [Created] (YARN-6444) Java options being duplicated in YARN
Ravindra Sandaruwan Ranaweera created YARN-6444:
---------------------------------------------------
Summary: Java options being duplicated in YARN
Key: YARN-6444
URL: https://issues.apache.org/jira/browse/YARN-6444
Project: Hadoop YARN
Issue Type: Bug
Components: scripts, yarn
Affects Versions: 2.7.3
Environment: CentOS 6.5, Hadoop 2.7.3, java version "1.7.0_79"
Reporter: Ravindra Sandaruwan Ranaweera
Additional Java options added to "yarn-env.sh" such as
export YARN_NODEMANAGER_OPTS="$YARN_NODEMANAGER_OPTS -Duser.country=XX"
adds the same Java option two times to YARN process. Processes are started with "service" command and environment variables of the process are checked with "sed -e 's/\x0/\n/g' /proc/<PID>/environ".
This occurs because "yarn-env.sh" is executed two times from "/usr/lib/hadoop-yarn/sbin/yarn-daemon.sh" and "/usr/lib/hadoop-yarn/bin/yarn" when starting.
This is already fixed in Hadoop3.0.0-alpha1 but I think it is better to correct this in Hadoop2.* too.
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)
---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org