You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by Bennie Schut <bs...@ebuddy.com> on 2010/08/04 09:16:43 UTC

SAXParseException on local mode?

I seem to get this error when hive decides to use local mode. If I 
disable it the problem is fixed: "set hive.exec.mode.local.auto=false;"
I was running a large integration test so I'm not exactly sure which 
calls to make to reproduce this but perhaps someone else know's what's 
going on?

java.lang.RuntimeException: org.xml.sax.SAXParseException: Content is 
not allowed in trailing section.
        at 
org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1168)
        at 
org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1040)
        at 
org.apache.hadoop.conf.Configuration.getProps(Configuration.java:980)
        at org.apache.hadoop.conf.Configuration.get(Configuration.java:382)
        at 
org.apache.hadoop.mapred.JobConf.checkAndWarnDeprecation(JobConf.java:1662)
        at org.apache.hadoop.mapred.JobConf.<init>(JobConf.java:215)
10/08/03 15:40:36 INFO parse.ParseDriver: Parsing command: show 
functions loglinecleanup
        at 
org.apache.hadoop.mapred.LocalJobRunner$Job.<init>(LocalJobRunner.java:93)
        at 
org.apache.hadoop.mapred.LocalJobRunner.submitJob(LocalJobRunner.java:373)
        at 
org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:800)
        at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:730)
10/08/03 15:40:36 INFO parse.ParseDriver: Parse Completed
        at 
org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:602)
        at 
org.apache.hadoop.hive.ql.exec.ExecDriver.main(ExecDriver.java:1021)
        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:156)
10/08/03 15:40:36 INFO ql.Driver: Semantic Analysis Completed
Caused by: org.xml.sax.SAXParseException: Content is not allowed in 
trailing section.
        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:1092)
        ... 16 more


RE: SAXParseException on local mode?

Posted by Joydeep Sen Sarma <js...@facebook.com>.
Hi Bennie -

- i changed the default for this option to be false in a recent commit.
- what version of java/hadoop are u running? it seems that the job.xml can get parsed on ur hadoop nodes, but not the client machine - so there must be some difference in the xml parsing library (that's part of the hadoop distro i assume)

Joydeep
________________________________________
From: Bennie Schut [bschut@ebuddy.com]
Sent: Wednesday, August 04, 2010 12:16 AM
To: hive-dev@hadoop.apache.org
Subject: SAXParseException on local mode?

I seem to get this error when hive decides to use local mode. If I
disable it the problem is fixed: "set hive.exec.mode.local.auto=false;"
I was running a large integration test so I'm not exactly sure which
calls to make to reproduce this but perhaps someone else know's what's
going on?

java.lang.RuntimeException: org.xml.sax.SAXParseException: Content is
not allowed in trailing section.
        at
org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1168)
        at
org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1040)
        at
org.apache.hadoop.conf.Configuration.getProps(Configuration.java:980)
        at org.apache.hadoop.conf.Configuration.get(Configuration.java:382)
        at
org.apache.hadoop.mapred.JobConf.checkAndWarnDeprecation(JobConf.java:1662)
        at org.apache.hadoop.mapred.JobConf.<init>(JobConf.java:215)
10/08/03 15:40:36 INFO parse.ParseDriver: Parsing command: show
functions loglinecleanup
        at
org.apache.hadoop.mapred.LocalJobRunner$Job.<init>(LocalJobRunner.java:93)
        at
org.apache.hadoop.mapred.LocalJobRunner.submitJob(LocalJobRunner.java:373)
        at
org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:800)
        at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:730)
10/08/03 15:40:36 INFO parse.ParseDriver: Parse Completed
        at
org.apache.hadoop.hive.ql.exec.ExecDriver.execute(ExecDriver.java:602)
        at
org.apache.hadoop.hive.ql.exec.ExecDriver.main(ExecDriver.java:1021)
        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:156)
10/08/03 15:40:36 INFO ql.Driver: Semantic Analysis Completed
Caused by: org.xml.sax.SAXParseException: Content is not allowed in
trailing section.
        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:1092)
        ... 16 more