Hadoop query regarding setJarByClass method of Job class

Viewed 10785

In the Hadoop API documentation it's given

that

setJarByClass 

public void setJarByClass(Class<?> cls)

Set the Jar by finding where a given class came from.

What exactly does this explanation mean? does it creates a JAR file from the class file argument specified in the method above? and does that jar file is executed for the MapReduce task.?

3 Answers
Related