Professional Documents
Culture Documents
6 Mapreduce - User Interfaces: Mapper
6 Mapreduce - User Interfaces: Mapper
6 Mapreduce - User Interfaces: Mapper
The run method specifies various facets of the job, such as the input/output paths (passed
via the command line), key/value types, input/output formats etc., in the JobConf. It then
calls the JobClient.runJob (line 55) to submit the and monitor its progress.
We'll learn more about JobConf, JobClient, Tool and other interfaces and classes a bit
later in the tutorial.
6.1 Payload
Applications typically implement the Mapper and Reducer interfaces to provide the map
and reduce methods. These form the core of the job.
6.1.1 Mapper
Copyright 2008 The Apache Software Foundation. All rights reserved. Page 9