hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rbsrao79email-had...@yahoo.co.in
Subject using control characters to seperate key-value
Date Sat, 01 Aug 2009 01:53:28 GMT
Hi,
    I have a problem trying to customize the
key-value seperator of the reducer output:
 
My Hadoop version: 0.19.2
 
I'm trying to get the reducer to use ctrl-A to seperate key
value pairs. 
 
conf.set("mapred.textoutputformat.separator","\001");
// also tried
conf.set("mapred.textoutputformat.separator","\u0001");
conf.setOutputFormat(TextOutputFormat.class); 
 
 
When trying to run the map reduce process, I get the
following error. 
 
org.apache.hadoop.ipc.RemoteException: java.io.IOException:
java.lang.RuntimeException: org.xml.sax.SAXParseException:
Character reference "&#1" is an invalid XML character.
    
 
As far as I know, xml does not permit control characters.
Is there a trick to working around this ?
 Rajeev


Mime
View raw message