[ Skip to the content ]

Institute of Formal and Applied Linguistics Wiki


[ Back to the navigation ]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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(), this.getClass().getName());    // Create class representing Hadoop job.     Job job = new Job(getConf(), this.getClass().getName());    // Create class representing Hadoop job.
 +                                                                // Name of the job is the name of current class.
  
     job.setJarByClass(this.getClass());                         // Use jar containing current class.     job.setJarByClass(this.getClass());                         // Use jar containing current class.
Line 78: Line 79:
 } }
 </file> </file>
 +
 +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 =====

[ Back to the navigation ] [ Back to the content ]