Changeset 18 for sample/HBaseRecordPro.java
- Timestamp:
- Jul 2, 2008, 3:10:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sample/HBaseRecordPro.java
r17 r18 1 1 /** 2 * Program: HBaseRecord .java2 * Program: HBaseRecordPro.java 3 3 * Editor: Waue Chen 4 4 * From : NCHC. Taiwn 5 * Last Update Date: 06/01/2008 5 * Last Update Date: 07/02/2008 6 * Upgrade to 0.17 6 7 */ 7 8 … … 227 228 conf.setNumMapTasks(mapTasks); 228 229 conf.setNumReduceTasks(reduceTasks); 229 conf.setInputPath(text_path); 230 // 0.16 231 // conf.setInputPath(text_path); 232 Convert.setInputPath(conf, text_path); 233 230 234 conf.setMapperClass(IdentityMapper.class); 231 235 conf.setCombinerClass(IdentityReducer.class); … … 235 239 236 240 // delete tmp file 237 FileSystem.get(conf).delete(text_path); 241 // 0.16 242 // FileSystem.get(conf).delete(text_path); 243 FileSystem.get(conf).delete(text_path,true); 244 238 245 setup.deleteFile(conf_tmp); 239 246 }
Note: See TracChangeset
for help on using the changeset viewer.