1.

How Can You Add The Arbitrary Key-value Pairs In Your Mapper?

Answer»

You can set arbitrary (KEY, value) PAIRS of configuration data in your JOB, e.g. with
Job.getConfiguration().set("myKey", "myVal"), and then retrieve this data in your mapper with
Context.getConfiguration().get("myKey"). This KIND of functionality is typically done in the Mapper's setup() method.

You can set arbitrary (key, value) pairs of configuration data in your Job, e.g. with
Job.getConfiguration().set("myKey", "myVal"), and then retrieve this data in your mapper with
Context.getConfiguration().get("myKey"). This kind of functionality is typically done in the Mapper's setup() method.



Discussion

No Comment Found