Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> ClassCastException


Copy link to this message
-
Re: ClassCastException
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 <
[EMAIL PROTECTED]> 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
>
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB