chukwa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerrit Jansen van Vuuren (JIRA)" <>
Subject [jira] Created: (CHUKWA-452) ChukwaArchive byte[] needs to be wrapped in DataByteArray
Date Tue, 09 Feb 2010 13:02:27 GMT
ChukwaArchive byte[] needs to be wrapped in DataByteArray

                 Key: CHUKWA-452
             Project: Hadoop Chukwa
          Issue Type: Bug
    Affects Versions: 0.4.0
            Reporter: Gerrit Jansen van Vuuren
             Fix For: 0.4.0

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 org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.PigMapOnly$
	at org.apache.hadoop.mapred.MapTask.runOldMapper(
	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