|
[
Permlink
| « Hide
]
Koji Noguchi added a comment - 03/Jun/08 11:34 PM
First try.
This looks great; just a few points:
Chris, thanks for the review.
Reason I did it this way is, I want to use this ouputformat with C++Pipes. (1) c++-reducer ---> (2) Java-PipesReducer ---> (3) collector ---> (4) SequenceFile(AsBinary)... And (2) mapred/pipes/PipesReducer calls job.getOutputKeyClass() and job.getOutputValueClass(), How about this. Just like mapoutputkeyclass uses outputkeyclass as the default class, we'll use
Done. Modified SequenceFile.java. Added @SuppressWarnings("unchecked") for MultipleSequenceFileOutputFormat.getBaseRecordWriter.
Done. Test added.
Yes. Except that SequenceFileAsBinaryInputFormat is in o.a.h.mapred.
Done. (Not sure if I did it correctly.)
Done.
Done.
Done Just a few quick changes and I think this is ready to commit:
Separted the test into three. testbinary, testSequenceOutputClassDefaultsToMapRedOutputClass, and testcheckOutputSpecsForbidRecordCompression. Also, I had a bug in the testing such that checkOutputSpecs was throwing an exception because output path was not set and not because RECORD compression was being set.
Ah. I should have compiled with "-Djavac.args="-Xlint -Xmaxwarns 1000".
I left it in since the original SequenceFile.ValueBytes has a signature
public void writeCompressedBytes(DataOutputStream outStream)
throws IllegalArgumentException, IOException;
Should I still take it out?
Done. [exec] +1 overall.
[exec] +1 @author. The patch does not contain any @author tags.
[exec] +1 tests included. The patch appears to include 3 new or modified tests.
[exec] +1 javadoc. The javadoc tool did not generate any warning messages.
[exec] +1 javac. The applied patch does not increase the total number of javac compiler warnings.
[exec] +1 findbugs. The patch does not introduce any new Findbugs warnings.
I just committed this. Thanks, Koji -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12383575/HADOOP-3460-part3.patch against trunk revision 664041. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 3 new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2608/testReport/ This message is automatically generated. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||