Uploaded image for project: 'Hadoop YARN'
  1. Hadoop YARN
  2. YARN-2210

resource manager fails to start if core-site.xml contains an xi:include

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.4.0
    • Fix Version/s: None
    • Component/s: resourcemanager
    • Labels:
      None

      Description

      The resource manager fails to start if core-site.xml contains an xi:include. This is easily reproduced with a pseudo-distributed mode. Just add something like this in the core-site.xml:

      <configuration xmlns:xi="http://www.w3.org/2001/XInclude"> 
        <xi:include href="mounttable.xml"/>
        ...
      

      and place mounttable.xml in the same directory (doesn't matter what the file is really).

      Then try starting the resource manager, and it will fail while handling this include. The exception encountered:

      [Warning] :20:38: Include operation failed, reverting to fallback. Resource error reading file as XML (href='mounttable.xml'). Reason: /Users/sjlee/hadoop-2.4.0/mounttable.xml (No such file or directory)
      [Fatal Error] :20:38: An include failed, and no fallback element was found.
      14/06/24 23:30:16 FATAL conf.Configuration: error parsing conf java.io.BufferedInputStream@7426dbec
      org.xml.sax.SAXParseException: An include failed, and no fallback element was found.
      	at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:246)
      	at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:284)
      	at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
      	at org.apache.hadoop.conf.Configuration.parse(Configuration.java:2173)
      	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2246)
      	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2195)
      	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2102)
      	at org.apache.hadoop.conf.Configuration.get(Configuration.java:851)
      	at org.apache.hadoop.conf.Configuration.getTrimmed(Configuration.java:870)
      	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1889)
      	at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1919)
      	at org.apache.hadoop.security.Groups.<init>(Groups.java:64)
      	at org.apache.hadoop.security.Groups.getUserToGroupsMappingServiceWithLoadedConfiguration(Groups.java:255)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.serviceInit(ResourceManager.java:197)
      	at org.apache.hadoop.service.AbstractService.init(AbstractService.java:163)
      	at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:1038)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sjlee0 Sangjin Lee
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: