Ignore:
Timestamp:
Jul 2, 2008, 3:10:09 PM (16 years ago)
Author:
waue
Message:

upgrade 0.16 to 0.17

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sample/HBaseRecordPro.java

    r17 r18  
    11/**
    2  * Program: HBaseRecord.java
     2 * Program: HBaseRecordPro.java
    33 * Editor: Waue Chen
    44 * From :  NCHC. Taiwn
    5  * Last Update Date: 06/01/2008
     5 * Last Update Date: 07/02/2008
     6 * Upgrade to 0.17
    67 */
    78
     
    227228    conf.setNumMapTasks(mapTasks);
    228229    conf.setNumReduceTasks(reduceTasks);
    229     conf.setInputPath(text_path);
     230    // 0.16
     231//    conf.setInputPath(text_path);
     232    Convert.setInputPath(conf, text_path);
     233   
    230234    conf.setMapperClass(IdentityMapper.class);
    231235    conf.setCombinerClass(IdentityReducer.class);
     
    235239   
    236240    // 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   
    238245    setup.deleteFile(conf_tmp);
    239246  }
Note: See TracChangeset for help on using the changeset viewer.