Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
0.20.1
-
None
-
Java 1.6, Hadoop 0.21.1+133 (cloudera distribution for hadoop)
-
Reviewed
Description
MRUnit allows one to iterate over a collection of values twice (ie.
reduce(Key key, Iterable<Value> values, Context context){
for(Value : values ) /* iterate once */;
for(Value : values ) /* iterate again */;
}
Hadoop will allow this as well, however the second iterator will be empty. MRUnit should either match hadoop's behavior or warn the user that their code is likely flawed.