chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Eric Yang (JIRA)" <>
Subject [jira] Commented: (CHUKWA-452) ChukwaArchive byte[] needs to be wrapped in DataByteArray
Date Tue, 09 Feb 2010 16:27:27 GMT


Eric Yang commented on CHUKWA-452:

This actually changes Chukwa Archive format to be pig specific.  ChukwaArchive should be extensible
to become archiver for pig data format.  It would be better that to leave Chukwa Archive as
it is and create a new archiver class to extend on top of this one.  What do you guys think?

> ChukwaArchive byte[] needs to be wrapped in DataByteArray
> ---------------------------------------------------------
>                 Key: CHUKWA-452
>                 URL:
>             Project: Hadoop Chukwa
>          Issue Type: Bug
>    Affects Versions: 0.4.0
>            Reporter: Gerrit Jansen van Vuuren
>             Fix For: 0.4.0
>         Attachments: CHUKWA-452.patch
> I've been trying to read the data inserted into /chukwa/finalArchives using the ChukwaArchive
 Loader in pig. 
> On trying to STORE only the data field using BinaryStore I get:
> java.lang.ClassCastException: [B cannot be cast to
> 	at org.apache.pig.builtin.BinaryStorage.putNext(
> 	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(
> 	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigOutputFormat$PigRecordWriter.write(
> 	at org.apache.hadoop.mapred.MapTask$DirectMapOutputCollector.collect(
> 	at org.apache.hadoop.mapred.MapTask$OldOutputCollector.collect(
> 	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$Map.collect(
> 	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapBase.runPipeline(
> 	at
> 	at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$
> 	at
> 	at org.apache.hadoop.mapred.MapTask.runOldMapper(
> 	at
> 	at org.apache.hadoop.mapred.Child.main(
> Looking at the ChukwaArchive class I saw that the data:byte[] is set to the Tuple without
wrapping to DataByteArray.
> The patch I'm submitting applies this change by wrapping the data:byte[] with the DataByteArray

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message