wiki:waue/2009/1028

Version 6 (modified by waue, 15 years ago) (diff)

--

  • FuseAlert.java 100% finished and testing finished

注意要點:

  1. the output is difference between Map and Reduce class !
        
        // set Map output key and value class
        job.setMapOutputKeyClass(Text.class);
        job.setMapOutputValueClass(LongWritable.class);
        // set Reduce output key and value class
        job.setOutputKeyClass(Text.class);
        job.setOutputValueClass(Text.class);
    
  1. 由於時間的位元長度過長,故20090101595959 已經超過 intWritable 的定址範圍

改為 0101595959 用 longWritable 宣告

  1. 在map 與 reduce class內宣告重要參數,需用全名,如 int 改為 Integer 較佳
  1. 也許因為key 過長,因此似乎影響到效能,此job 需run完需20secs