Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
courses:mapreduce-tutorial:step-24 [2012/01/27 21:52] straka |
courses:mapreduce-tutorial:step-24 [2012/01/27 22:01] straka |
||
---|---|---|---|
Line 55: | Line 55: | ||
Job job = new Job(getConf(), | Job job = new Job(getConf(), | ||
+ | // Name of the job is the name of current class. | ||
job.setJarByClass(this.getClass()); | job.setJarByClass(this.getClass()); | ||
Line 78: | Line 79: | ||
} | } | ||
</ | </ | ||
+ | |||
+ | Remarks: | ||
+ | * The filename //must// be the same as the name of the class -- this is enforced by Java compiler. | ||
+ | * In one class multiple jobs can be submitted, either in sequence or in parallel. | ||
+ | * A mismatch of types is usually detected by the compiler, but sometimes it is detected only at runtime. If that happens, an exception is raised and the program crashes. | ||
===== Running the job ===== | ===== Running the job ===== |