On 10/08/2010 02:52 AM, Ted Yu wrote:
> Have you checked
> http://download.oracle.com/javase/6/docs/api/javax/xml/stream/XMLEventReader.html?
Hm, I'm working really often with StAX and I'm using the event reader in
my custom input format to create the records and produce a List of
XMLEvents or mor
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.lichtenber...@uni-konstanz.de> wrote:
> On 10/08/2010 02:38 AM, Johannes.Lichtenberger wrote:
> > On 10/08/2010 01:29 AM, Ted Yu wr
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 t
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 re
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.
On Thu, Oct 7, 2010 at 4:05 PM, Johannes.Lichtenberger <
On 10/08/2010 12:01 AM, Ted Yu wrote:
> http://www.ibm.com/developerworks/xml/library/x-stax2.html
I think the problem would be how to serialize XMLEvents or more
precisely I don't know if there's an existing StAX XMLEvent-to-String
class/method.
regards,
Johannes
On 10/08/2010 12:01 AM, Ted Yu wrote:
> http://www.ibm.com/developerworks/xml/library/x-stax2.html
Yes, my approach is to parse a very big XML file (wikipedia revisions)
with StAX in my RecordReader implementation. The key is a timestamp and
the values are Lists, because I don't want to have to
se
http://www.ibm.com/developerworks/xml/library/x-stax2.html
On Thu, Oct 7, 2010 at 2:54 PM, Johannes.Lichtenberger <
johannes.lichtenber...@uni-konstanz.de> wrote:
> On 10/07/2010 05:41 PM, Ted Yu wrote:
> > Since mFormatter.format() returns a String, you don't need to introduce
> > newline.
> > Y
On 10/07/2010 05:41 PM, Ted Yu wrote:
> Since mFormatter.format() returns a String, you don't need to introduce
> newline.
> You can call paramOut.writeUTF() to save the String and call
> paramIn.readUTF() to read it back.
Ok, that's what I did right after replying. My value is a List
or more prec
Oops, I meant Writable.
On Thu, Oct 7, 2010 at 6:58 AM, Johannes.Lichtenberger
wrote:
> On 10/07/2010 06:46 AM, Anthony Urso wrote:
>> Hadoop is attempting to cast a Date object to WritableComparable, which
>> Date does not implement, and is causing that exception.
>>
>> Your keys must implement
Since mFormatter.format() returns a String, you don't need to introduce
newline.
You can call paramOut.writeUTF() to save the String and call
paramIn.readUTF() to read it back.
The value class doesn't need to implement Comparable.
On Thu, Oct 7, 2010 at 6:58 AM, Johannes.Lichtenberger <
johannes.
On 10/07/2010 06:46 AM, Anthony Urso wrote:
> Hadoop is attempting to cast a Date object to WritableComparable, which
> Date does not implement, and is causing that exception.
>
> Your keys must implement WritableComparable and your values must
> implement Comparable.
The values have to implemen
> I'm getting a ClassCastException, when running my application:
>
> 10/10/07 04:31:10 WARN mapred.LocalJobRunner: job_local_0001
> java.lang.ClassCastException: class java.util.Date
> at java.lang.Class.asSubclass(Cl
Hello,
I'm getting a ClassCastException, when running my application:
10/10/07 04:31:10 WARN mapred.LocalJobRunner: job_local_0001
java.lang.ClassCastException: class java.util.Date
at java.lang.Class.asSubclass(Class.java:3018)
14 matches
Mail list logo