ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk (JIRA)" <j...@apache.org>
Subject [jira] [Created] (AMBARI-5094) yarn.exclude FileNotFoundException during RM startup
Date Fri, 14 Mar 2014 18:52:53 GMT
Andrew Onischuk created AMBARI-5094:
---------------------------------------

             Summary: yarn.exclude FileNotFoundException during RM startup
                 Key: AMBARI-5094
                 URL: https://issues.apache.org/jira/browse/AMBARI-5094
             Project: Ambari
          Issue Type: Bug
            Reporter: Andrew Onischuk
            Assignee: Andrew Onischuk
             Fix For: 1.5.0


On an Ambari deployed cluster, the following configs are set in yarn-site.xml:
    <property>
      <name>yarn.resourcemanager.nodes.exclude-path</name>
      <value>/etc/hadoop/conf/yarn.exclude</value>
    </property>

and /etc/hadoop/conf/yarn.exclude does not exist.

This causes an error to be thrown in RM logs:
{noformat}
2014-02-26 15:34:19,721 WARN org.apache.hadoop.yarn.server.resourcemanager.NodesListManager:
Failed to init hostsReader, disabling
java.io.FileNotFoundException: /etc/hadoop/conf/yarn.exclude (No such file or directory)
        at java.io.FileInputStream.open(Native Method)
        at java.io.FileInputStream.<init>(FileInputStream.java:138)
        at java.io.FileInputStream.<init>(FileInputStream.java:97)
        at org.apache.hadoop.yarn.LocalConfigurationProvider.getConfigurationInputStream(LocalConfigurationProvider.java:45)
        at org.apache.hadoop.yarn.server.resourcemanager.NodesListManager.createHostsFileReader(NodesListManager.java:219)
        at org.apache.hadoop.yarn.server.resourcemanager.NodesListManager.serviceInit(NodesListManager.java:76)
        at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at org.apache.hadoop.service.CompositeService.serviceInit(CompositeService.java:107)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$RMActiveServices.serviceInit(ResourceManager.java:451)
        at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.createAndInitActiveServices(ResourceManager.java:804)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:217)
        at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
        at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1016)
2014-02-26 15:34:19,723 INFO org.apache.hadoop.util.HostsFileReader: Refreshing hosts (include/exclude)
list
{noformat}

The error is harmless and RM starts up fine but with this exception in the logs. Either an
empty file should be created or the property has to be removed from yarn-site.xml



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message