Changes between Version 5 and Version 6 of NCHCCloudCourse100928_4_EXM2
- Timestamp:
- Sep 28, 2010, 11:17:26 AM (15 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
NCHCCloudCourse100928_4_EXM2
v5 v6 126 126 job.setOutputValueClass(Text.class); 127 127 128 FileInputFormat.addInputPath(job, new Path("/user/hadoop er/input"));128 FileInputFormat.addInputPath(job, new Path("/user/hadoop/input")); 129 129 130 FileOutputFormat.setOutputPath(job, new Path("/user/hadoop er/output-hh2"));130 FileOutputFormat.setOutputPath(job, new Path("/user/hadoop/output-hh2")); 131 131 132 132 // 呼叫checkAndDelete函式,檢查是否存在該資料夾,若有則刪除之 133 CheckAndDelete.checkAndDelete("/user/hadoop er/output-hh2", conf);133 CheckAndDelete.checkAndDelete("/user/hadoop/output-hh2", conf); 134 134 135 135 boolean status = job.waitForCompletion(true);