Changeset 18 for sample/HBaseRecord2.java
- Timestamp:
- Jul 2, 2008, 3:10:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sample/HBaseRecord2.java
r14 r18 3 3 * Editor: Waue Chen 4 4 * From : NCHC. Taiwn 5 * Last Update Date: 06/01/2008 5 * Last Update Date: 07/01/2008 6 * Upgrade to 0.17 6 7 */ 7 8 … … 53 54 package tw.org.nchc.code; 54 55 55 import java.io.FileInputStream;56 56 import java.io.IOException; 57 57 import java.util.Iterator; … … 140 140 + "\" has already existed !"); 141 141 } 142 FileInputStream fi = new FileInputStream(setup.file_path);143 144 142 145 143 JobConf conf = new JobConf(HBaseRecord2.class); … … 154 152 conf.setNumMapTasks(setup.mapTasks); 155 153 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)); 157 157 conf.setMapperClass(IdentityMapper.class); 158 158 conf.setCombinerClass(IdentityReducer.class);
Note: See TracChangeset
for help on using the changeset viewer.