[ https://issues.apache.org/jira/browse/YARN-1057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13753992#comment-13753992 ]
yeshavora commented on YARN-1057: --------------------------------- Hitesh, the usecase will be when invalid hosts are added in include/exclude file, Yarn should recognize them and does not add/remove node from cluster. Yarn should not print below message. INFO util.HostsFileReader (HostsFileReader.java:readFileToSet(68)) - Adding invalidhost.net to the list of included hosts from /tmp/yarn.include Ideally it should say something like "java.net.UnknownHostException: invalidhost.net" I believe RM shutdown is not needed as long as It can verify existence of a host. > Add mechanism to check validity of a Node to be Added/Excluded > -------------------------------------------------------------- > > Key: YARN-1057 > URL: https://issues.apache.org/jira/browse/YARN-1057 > Project: Hadoop YARN > Issue Type: Improvement > Affects Versions: 2.1.0-beta > Reporter: yeshavora > Assignee: Xuan Gong > Attachments: YARN-1057.1.patch > > > Yarn does not complain while passing an invalid hostname like > 'invalidhost.com' inside include/exclude node file. (specified by > 'yarn.resourcemanager.nodes.include-path' or > 'yarn.resourcemanager.nodes.exclude-path'). > Need to add a mechanism to check the validity of the hostname before > including or excluding from cluster. It should throw an error / exception > while adding/removing an invalid node. -- 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