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/HBaseRecord2.java

    r14 r18  
    33 * Editor: Waue Chen
    44 * From :  NCHC. Taiwn
    5  * Last Update Date: 06/01/2008
     5 * Last Update Date: 07/01/2008
     6 * Upgrade to 0.17
    67 */
    78
     
    5354package tw.org.nchc.code;
    5455
    55 import java.io.FileInputStream;
    5656import java.io.IOException;
    5757import java.util.Iterator;
     
    140140          + "\" has already existed !");
    141141    }
    142     FileInputStream fi = new FileInputStream(setup.file_path);
    143    
    144142   
    145143    JobConf conf = new JobConf(HBaseRecord2.class);
     
    154152    conf.setNumMapTasks(setup.mapTasks);
    155153    conf.setNumReduceTasks(setup.reduceTasks);
    156     conf.setInputPath(new Path(setup.file_path));
     154    // 0.16
     155//    conf.setInputPath(new Path(setup.file_path));
     156    Convert.setInputPath(conf, new Path(setup.file_path));
    157157    conf.setMapperClass(IdentityMapper.class);
    158158    conf.setCombinerClass(IdentityReducer.class);
Note: See TracChangeset for help on using the changeset viewer.