AnsweredAssumed Answered

Passing Jars to Map and Reduce Tasks

Question asked by rthimmana on Apr 25, 2013
Latest reply on Apr 29, 2013 by siddharth1988
How can we pass the necessary jars to Map and Reduce tasks?

One option is to put them in the code (as below). What is the correct syntax to send these from the command line - when launching the Map Reduce Job? Can the libjars be used for this purpose? What is the correct syntax?

Example

DistributedCache.addFileToClassPath(new Path("/jars/hbase-0.94.1.jar"), conf);

DistributedCache.addFileToClassPath(new Path("/jars/bcprov-jdk15on-147.jar"), conf);

Outcomes