hadoop-mapreduce-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "PRASHANT KOMMIREDDI (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (MAPREDUCE-109) Setting up ctr-A as custom delimiter for "mapred.textoutputformat.separator"
Date Tue, 12 Apr 2011 01:47:05 GMT

    [ https://issues.apache.org/jira/browse/MAPREDUCE-109?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13018671#comment-13018671
] 

PRASHANT KOMMIREDDI commented on MAPREDUCE-109:
-----------------------------------------------

Is there a fix to this yet? I am facing a similar issue


11/04/11 18:39:43 INFO lzo.LzoCodec: Successfully loaded & initialized native-lzo library
[hadoop-lzo rev 3ebdc922a897735c130a12bb44fc8c0819077f9d]
Exception in thread "main" org.apache.hadoop.ipc.RemoteException: java.io.IOException: java.lang.RuntimeException:
org.xml.sax.SAXParseException: Character reference "&#7" is an invalid XML character.
        at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1317)
        at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1186)
        at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1115)
        at org.apache.hadoop.conf.Configuration.get(Configuration.java:425)
        at org.apache.hadoop.mapred.JobConf.checkAndWarnDeprecation(JobConf.java:1709)
        at org.apache.hadoop.mapred.JobConf.<init>(JobConf.java:214)
        at org.apache.hadoop.mapred.JobInProgress.<init>(JobInProgress.java:264)
        at org.apache.hadoop.mapred.JobInProgress.<init>(JobInProgress.java:240)
        at org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:3026)
        at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:512)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:968)
        at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:964)
        at java.security.AccessController.doPrivileged(Native Method)
        at javax.security.auth.Subject.doAs(Subject.java:396)
        at org.apache.hadoop.ipc.Server$Handler.run(Server.java:962)

        at org.apache.hadoop.ipc.Client.call(Client.java:818)
        at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:221)
        at org.apache.hadoop.mapred.$Proxy1.submitJob(Unknown Source)
        at org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:841)
        at org.apache.hadoop.mapreduce.Job.submit(Job.java:443)
        at org.apache.hadoop.mapreduce.Job.waitForCompletion(Job.java:467)
        at com.ebay.ice.hadoop.mobius.srp.mapred.SRPImpressionCounter.run(SRPImpressionCounter.java:182)
        at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
        at com.ebay.ice.hadoop.mobius.srp.mapred.SRPImpressionCounter.main(SRPImpressionCounter.java:110)
        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)


> Setting up ctr-A as custom delimiter for "mapred.textoutputformat.separator"
> ----------------------------------------------------------------------------
>
>                 Key: MAPREDUCE-109
>                 URL: https://issues.apache.org/jira/browse/MAPREDUCE-109
>             Project: Hadoop Map/Reduce
>          Issue Type: Bug
>            Reporter: Suhas Gogate
>
> Feature added by this Jira has a problem while setting up some of the invalid xml characters
e.g. ctrl-A e.g. mapred.textoutputformat.separator = "\u0001"
> e,g,
> String delim = "\u0001";
> Conf.set("mapred.textoutputformat.separator", delim);
> Job client serializes the jobconf with mapred.textoutputformat.separator set to "\u0001"
(ctrl-A) and problem happens when it is de-serialized (read back) by job tracker, where it
encounters invalid xml character.
> The test for this feature public : testFormatWithCustomSeparator() does not serialize
the jobconf after adding the separator as ctrl-A and hence does not detect the specific problem.
> Here is an exception:
> 08/12/06 01:40:50 INFO mapred.FileInputFormat: Total input paths to process : 1
> org.apache.hadoop.ipc.RemoteException: java.io.IOException:
> java.lang.RuntimeException: org.xml.sax.SAXParseException: Character reference "&#1"
is an invalid XML
> character.
> at
> org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:961)
> at
> org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:864)
> at
> org.apache.hadoop.conf.Configuration.getProps(Configuration.java:832)
> at org.apache.hadoop.conf.Configuration.get(Configuration.java:291)
> at
> org.apache.hadoop.mapred.JobConf.getJobPriority(JobConf.java:1163)
> at
> org.apache.hadoop.mapred.JobInProgress.<init>(JobInProgress.java:179)
> at
> org.apache.hadoop.mapred.JobTracker.submitJob(JobTracker.java:1783)
> 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.ipc.RPC$Server.call(RPC.java:452)
> at org.apache.hadoop.ipc.Server$Handler.run(Server.java:888)
> at org.apache.hadoop.ipc.Client.call(Client.java:715)
> at org.apache.hadoop.ipc.RPC$Invoker.invoke(RPC.java:216)
> at org.apache.hadoop.mapred.$Proxy1.submitJob(Unknown Source)
> at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:788)
> at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1026)
> at

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message