hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: ClassCastException
Date Fri, 08 Oct 2010 00:52:09 GMT
Have you checked
http://download.oracle.com/javase/6/docs/api/javax/xml/stream/XMLEventReader.html?

On Thu, Oct 7, 2010 at 5:49 PM, Johannes.Lichtenberger <
Johannes.Lichtenberger@uni-konstanz.de> wrote:

> On 10/08/2010 02:38 AM, Johannes.Lichtenberger wrote:
> > On 10/08/2010 01:29 AM, Ted Yu wrote:
> >>
> http://download.oracle.com/javase/6/docs/api/javax/xml/stream/XMLEventWriter.html
> >>
> >> You can use an XMLOutputFactory to create an XMLEventWriter, and then
> use an
> >> XMLEventFactory to create events that can then be written to the
> >> XMLEventWriter.
> >
> > I just rethought about the List with Writable XMLEvents. I think it
> > would probably be better, otherwise I have to create an XMLEventReader
> > in the RecordReader, Mapper and Reducer, and everytime convert the
> > events back to Text, whereas a List of XMLEvents would be sufficient.
> > I'm currently not sure.
>
> Hm, maybe I can just call mEvent.writeAsEncodedUnicode(writer), than
> output the writer but then I'm not entirely sure how to do the reverse
> thing, reading the input (how to implement readFields(...)).
>
> regards,
> Johannes
>

Mime
View raw message