Support Questions
Find answers, ask questions, and share your expertise

hadop seems to use a wrong xml parser


I have an existing application which works quite fine. If I add a specific jar (no code changes yet) mappers don't start because there is a probem reading the configuration:

2018-09-06 15:26:12,221 [main] ERROR org.apache.hadoop.conf.Configuration - error parsing conf core-default.xml
javax.xml.parsers.ParserConfigurationException: Feature '' is not recognized.
	at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.newDocumentBuilder(Unknown Source)
	at org.apache.hadoop.conf.Configuration.loadResource(
	at org.apache.hadoop.conf.Configuration.loadResources(
	at org.apache.hadoop.conf.Configuration.getProps(
	at org.apache.hadoop.conf.Configuration.get(
	at org.apache.hadoop.yarn.factory.providers.RecordFactoryProvider.getRecordFactory(
	at org.apache.hadoop.yarn.util.Records.<clinit>(
	at org.apache.hadoop.yarn.api.records.ApplicationId.newInstance(
	at org.apache.hadoop.yarn.api.records.ContainerId.toApplicationAttemptId(
	at org.apache.hadoop.yarn.api.records.ContainerId.toApplicationAttemptId(
	at org.apache.hadoop.yarn.api.records.ContainerId.fromString(
	at org.apache.hadoop.yarn.util.ConverterUtils.toContainerId(

It looks as if a wrong xml parser is used here.

Intererstingly, running the application local in eclipse works just fine.

I tried to debug my application. In the driver I didn't see any problems, and the mapper didn't reach my first breakpoint (first line in the main method of YarnChild).

Looking at the stack trace, from where is MRAppMaster called (started)?

How could I get hadoop using the correct xml parser?

I added

all places I was thinking of:

in my driver class,



as parameter when calling "yarn jar"

How could I solve this?

Thanks in advance