Oracle Loader For Hadoop job fails with 'java.lang.RuntimeException: org.xml.sax.SAXParseException'
(Doc ID 1475996.1)
Last updated on FEBRUARY 08, 2017
Applies to:
Oracle Loader for Hadoop - Version 1.1.0.0.0 and laterLinux x86-64
Symptoms
Running a job with Oracle Loader for Hadoop immediately fails with the following exception:
Oracle Loader for Hadoop Release 1.1.0.0.1 - Production
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
[Fatal Error] :12:38: The content of elements must consist of well-formed character data or markup.
12/07/17 21:51:41 FATAL conf.Configuration: error parsing conf file: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1393)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1261)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1192)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:461)
at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:642)
at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:303)
at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:413)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:164)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:147)
at oracle.hadoop.loader.OraLoader.configureLog4j(OraLoader.java:707)
at oracle.hadoop.loader.OraLoader.main(OraLoader.java:727)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:197)
Caused by: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
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.loadResource(Configuration.java:1313)
... 15 more
Copyright (c) 2011, Oracle and/or its affiliates. All rights reserved.
[Fatal Error] :12:38: The content of elements must consist of well-formed character data or markup.
12/07/17 21:51:41 FATAL conf.Configuration: error parsing conf file: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
Exception in thread "main" java.lang.RuntimeException: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1393)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1261)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1192)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:461)
at org.apache.hadoop.conf.Configuration.setBoolean(Configuration.java:642)
at org.apache.hadoop.util.GenericOptionsParser.processGeneralOptions(GenericOptionsParser.java:303)
at org.apache.hadoop.util.GenericOptionsParser.parseGeneralOptions(GenericOptionsParser.java:413)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:164)
at org.apache.hadoop.util.GenericOptionsParser.<init>(GenericOptionsParser.java:147)
at oracle.hadoop.loader.OraLoader.configureLog4j(OraLoader.java:707)
at oracle.hadoop.loader.OraLoader.main(OraLoader.java:727)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.hadoop.util.RunJar.main(RunJar.java:197)
Caused by: org.xml.sax.SAXParseException: The content of elements must consist of well-formed character data or markup.
at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(DOMParser.java:249)
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.loadResource(Configuration.java:1313)
... 15 more
Cause
To view full details, sign in with your My Oracle Support account. |
|
Don't have a My Oracle Support account? Click to get started! |
In this Document
Symptoms |
Cause |
Solution |