[ 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 Both sides next revision
courses:mapreduce-tutorial:step-26 [2012/01/28 15:29]
straka
courses:mapreduce-tutorial:step-26 [2012/01/28 15:40]
straka
Line 26: Line 26:
  
 The job properties can be set: The job properties can be set:
-  * on the command line -- the [[http://hadoop.apache.org/common/docs/r1.0.0/api/org/apache/hadoop/util/ToolRunner.html|ToolRunner]] parses options in format ''-Dname=value'' +  * on the command line -- the [[http://hadoop.apache.org/common/docs/r1.0.0/api/org/apache/hadoop/util/ToolRunner.html|ToolRunner]] parses options in format ''-Dname=value''. See the [[.:step-24#running-the-job|syntax of the hadoop script]]. 
-  * using the [[http://hadoop.apache.org/common/docs/r1.0.0/api/org/apache/hadoop/mapreduce/Job.html|Job]] object. +  * using the [[http://hadoop.apache.org/common/docs/r1.0.0/api/org/apache/hadoop/mapreduce/Job.html|Job]]''.getConfiguration()'' a [[http://hadoop.apache.org/common/docs/r1.0.0/api/org/apache/hadoop/conf/Configuration.html|Configuration]] object is retrievedIt provides following methods: 
-See the [[.:step-9#a-brief-list-of-hadoop-options|brief list of Hadoop properties]].+    * ''String get(String name)'' -- get the value of the ''name'' property, ''null'' if it does not exist. 
 +    * ''String get(String name, String defaultValue)'' -- get the value of the ''name'' property 
 +    * ''getBoolean'', ''getClass'', ''getFile'', ''getFloat'', ''getInt'', ''getLong'', ''getStrings'' -- return a typed value of the ''name'' property (i.e., number, file name, class name, ...). 
 +    * ''set(String name, String value)'' -- set the value of the ''name'' property to ''value''
 +    * ''setBoolean'', ''setClass'', ''setFile'', ''setFloat'', ''setInt'', ''setLong'', ''setStrings'' -- set the typed value of the ''name'' property (i.e., number, file name, class name, ...). 
 + 
 +Apart from already mentioned [[.:step-9#a-brief-list-of-hadoop-options|brief list of Hadoop properties]], there is one important Java-specific property:
  
-There is one  

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