hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allen Wittenauer (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7011) yarn-daemon.sh is not respecting --config option
Date Wed, 16 Aug 2017 23:52:00 GMT

    [ https://issues.apache.org/jira/browse/YARN-7011?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16129634#comment-16129634
] 

Allen Wittenauer commented on YARN-7011:
----------------------------------------

It's effectively a bug in 2.x and lower.

Let's break this down to it's components:

etc/hadoop/x has a working config that includes HADOOP_CONF_DIR definition that points to
etc/hadoop

user copies etc/hadoop to tmp/config and changes something else.  HADOOP_CONF_DIR remains
etc/hadoop.  That's a problem because HADOOP_CONF_DIR isn't actually etc/hadoop anymore....

This is especially problematic for 3rd parties.  They might read hadoop-env.sh directly and
not have the logic in 2.x's hadoop-config.sh to know that the HADOOP_CONF_DIR value is a lie.
 In 3.x, users either need to a) make sure that they aren't lying to the system by keeping
HADOOP_CONF_DIR truthful or b) not set it at all in the env files.

> yarn-daemon.sh is not respecting --config option
> ------------------------------------------------
>
>                 Key: YARN-7011
>                 URL: https://issues.apache.org/jira/browse/YARN-7011
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: yarn
>            Reporter: Sumana Sathish
>            Priority: Blocker
>             Fix For: 3.0.0-beta1
>
>
> Steps to reproduce:
> 1. Copy the conf to a temporary location /tmp/Conf
> 2. Modify anything in yarn-site.xml under /tmp/Conf/. Ex: Give invalid RM address
> 3. Restart the resourcemanager using yarn-daemon.sh using --config /tmp/Conf
> 4. --config is not respected as the changes made in /tmp/Conf/yarn-site.xml is not taken
in while restarting RM



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message