Changes between Initial Version and Version 1 of Hinet131022/Lab22


Ignore:
Timestamp:
Oct 22, 2013, 4:59:09 PM (11 years ago)
Author:
jazz
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • Hinet131022/Lab22

    v1 v1  
     1◢ <[wiki:Hinet131022/Lab21 實作二十]> | <[wiki:Hinet131022 回課程大綱]> ▲ | <[wiki:Hinet131022/Lab23 實作二十二] > ◣
     2
     3= 實作二十二 Lab22 =
     4
     5{{{
     6#!html
     7<p style="text-align: center;"><big style="font-weight: bold;"><big>透過 MapReduce 的設定檔傳遞參數<br/> Passing Arguments to Mapper and Reducer with Configuration</big></big></p>
     8}}}
     9
     10[[PageOutline]]
     11
     12{{{
     13#!text
     14請先連線至 nodeN.3du.me , N 為您的報名編號
     15}}}
     16
     17{{{
     18cd ~/hadoop_labs/lab013
     19ant
     20hadoop fs -put l13_input l13_input
     21hadoop jar WordCount.jar l13_input l13_output
     22hadoop fs -cat l13_output/part-r-00000
     23hadoop jar WordCount.jar -Dwordcount.case.sensitive=false l13_input l13_output2
     24hadoop fs -cat l13_output2/part-r-00000
     25}}}
     26
     27 * Reference:
     28  * http://hadoop.apache.org/docs/r1.0.4/api/org/apache/hadoop/conf/Configuration.html
     29   * org.apache.hadoop.conf.Configuration.setBoolean(String name, boolean value)
     30   * org.apache.hadoop.conf.Configuration.getBoolean(String name, boolean defaultValue)
     31  * [http://hadoop.apache.org/docs/r1.0.4/api/org/apache/hadoop/mapreduceMapper.html#setup%28org.apache.hadoop.mapreduce.Mapper.Context%29 org.apache.hadoop.mapreduce.Mapper.setup(Mapper.Context context)]
     32  * [http://hadoop.apache.org/docs/r1.0.4/api/org/apache/hadoop/mapreduce/JobContext.html#getConfiguration%28%29 org.apache.hadoop.mapreduce.JobContext.getConfiguration()]     
     33  * http://www.cloudera.com/content/cloudera-content/cloudera-docs/HadoopTutorial/CDH4/Hadoop-Tutorial/ht_topic_7_1.html
     34
     35== 實作習題 ==
     36
     37 <問題 1>