Changes between Version 2 and Version 3 of NCHCCloudCourse100928_4_EXM4
- Timestamp:
- Sep 28, 2010, 1:29:23 PM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NCHCCloudCourse100928_4_EXM4
v2 v3 83 83 84 84 public static void main(String[] args) throws Exception { 85 // debugusing86 // String[] argv = { "/user/hadoop er/input", "/user/hadooper/output-wc" };85 // eclipse using 86 // String[] argv = { "/user/hadoop/input", "/user/hadoop/output-wc" }; 87 87 // args = argv; 88 88 … … 98 98 99 99 Job job = new Job(conf, "Word Count"); 100 job.setJarByClass(WordCount.class); 101 job.setMapperClass(TokenizerMapper.class); 102 job.setCombinerClass(IntSumReducer.class); 103 job.setReducerClass(IntSumReducer.class); 100 // 請注意這裡需要你更正 101 job.setJarByClass(XXXXX.class); 102 // 請注意這裡需要你更正 103 job.setMapperClass(XXXXX.class); 104 // 請注意這裡需要你更正 105 job.setCombinerClass(XXXXX.class); 106 // 請注意這裡需要你更正 107 job.setReducerClass(XXXXX.class); 104 108 job.setOutputKeyClass(Text.class); 105 109 job.setOutputValueClass(IntWritable.class);