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

Hudson commented on YARN-116:
-----------------------------

Integrated in Hadoop-Hdfs-trunk-Commit #2855 (See 
[https://builds.apache.org/job/Hadoop-Hdfs-trunk-Commit/2855/])
    YARN-116. Add the ability to change the RM include/exclude file without a 
restart. (Contributed by xieguiming and Harsh J) (Revision 1391912)

     Result = SUCCESS
sseth : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1391912
Files : 
* /hadoop/common/trunk/hadoop-yarn-project/CHANGES.txt
* 
/hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/AdminService.java
* 
/hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/main/java/org/apache/hadoop/yarn/server/resourcemanager/NodesListManager.java
* 
/hadoop/common/trunk/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager/TestResourceTrackerService.java

                
> RM is missing ability to add include/exclude files without a restart
> --------------------------------------------------------------------
>
>                 Key: YARN-116
>                 URL: https://issues.apache.org/jira/browse/YARN-116
>             Project: Hadoop YARN
>          Issue Type: Bug
>          Components: resourcemanager
>    Affects Versions: 2.0.0-alpha
>            Reporter: xieguiming
>            Assignee: xieguiming
>             Fix For: 2.0.3-alpha
>
>         Attachments: HADOOP-835-0.patch, HADOOP-835-1.patch, 
> HADOOP-835.patch, YARN-116.patch
>
>
> The "yarn.resourcemanager.nodes.include-path" default value is "", if we need 
> to add an include file, we must currently restart the RM. 
> I suggest that for adding an include or exclude file, there should be no need 
> to restart the RM. We may only execute the refresh command. The HDFS NameNode 
> already has this ability.
> Fix is to the modify HostsFileReader class instances:
> From:
> {code}
> public HostsFileReader(String inFile, 
>                          String exFile)
> {code}
> To:
> {code}
>  public HostsFileReader(Configuration conf, 
>                          String NODES_INCLUDE_FILE_PATH,String 
> DEFAULT_NODES_INCLUDE_FILE_PATH,
>                         String NODES_EXCLUDE_FILE_PATH,String 
> DEFAULT_NODES_EXCLUDE_FILE_PATH)
> {code}
> And thus, we can read the config file dynamically when a {{refreshNodes}} is 
> invoked and therefore have no need to restart the ResourceManager.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to