Changeset 25 for sample/hadoop-0.16/tw/org/nchc/code/WordCount.java
- Timestamp:
- Jul 3, 2008, 4:45:54 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sample/hadoop-0.16/tw/org/nchc/code/WordCount.java
r23 r25 110 110 conf.setNumMapTasks(mapTasks); 111 111 conf.setNumReduceTasks(reduceTasks); 112 // 0.16113 //conf.setInputPath(new Path(wc.filepath));114 Convert.setInputPath(conf, new Path(wc.filepath)); 112 113 conf.setInputPath(new Path(wc.filepath)); 114 115 115 conf.setOutputKeyClass(Text.class); 116 116 conf.setOutputValueClass(IntWritable.class); 117 // 0.16 118 // conf.setOutputPath(new Path(wc.outputPath)); 119 Convert.setOutputPath(conf, new Path(wc.outputPath)); 117 118 conf.setOutputPath(new Path(wc.outputPath)); 120 119 121 120 conf.setMapperClass(MapClass.class); … … 125 124 // Delete the output directory if it exists already 126 125 Path outputDir = new Path(wc.outputPath); 127 // 0.16 128 FileSystem.get(conf).delete(outputDir,true); 129 126 FileSystem.get(conf).delete(outputDir); 130 127 JobClient.runJob(conf); 131 128 }
Note: See TracChangeset
for help on using the changeset viewer.