Changeset 27 for sample/hadoop-0.16/tw/org/nchc/demo/DemoHBaseSink.java
- Timestamp:
- Jul 3, 2008, 5:25:22 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sample/hadoop-0.16/tw/org/nchc/demo/DemoHBaseSink.java
r21 r27 4 4 * From : NCHC. Taiwn 5 5 * Last Update Date: 07/02/2008 6 * Upgrade to 0.177 6 * Re-code from : Cloud9: A MapReduce Library for Hadoop 8 7 */ … … 28 27 import org.apache.hadoop.mapred.lib.IdentityMapper; 29 28 import org.apache.hadoop.mapred.lib.IdentityReducer; 30 31 import tw.org.nchc.code.Convert;32 29 33 30 /** … … 81 78 conf.setNumMapTasks(mapTasks); 82 79 conf.setNumReduceTasks(reduceTasks); 83 // 0.16 84 // conf.setInputPath(new Path(filename)); 85 Convert.setInputPath(conf, new Path(filename)); 86 80 conf.setInputPath(new Path(filename)); 87 81 conf.setMapperClass(IdentityMapper.class); 88 82 conf.setCombinerClass(IdentityReducer.class);
Note: See TracChangeset
for help on using the changeset viewer.