You have written a Mapper which invokes the following five calls to the OutputColletor.collect method:
output.collect (new Text (''Apple''), new Text (''Red'') ) ;
output.collect (new Text (''Banana''), new Text (''Yellow'') ) ;
output.collect (new Text (''Apple''), new Text (''Yellow'') ) ;
output.collect (new Text (''Cherry''), new Text (''Red'') ) ;
output.collect (new Text (''Apple''), new Text (''Green'') ) ;
How many times will the Reducer's reduce method be invoked?
Currently there are no comments in this discussion, be the first to comment!