Changeset 18 for sample/WordCountFromHBase.java
- Timestamp:
- Jul 2, 2008, 3:10:09 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sample/WordCountFromHBase.java
r9 r18 3 3 * Editor: Waue Chen 4 4 * From : NCHC. Taiwn 5 * Last Update Date: 06/13/2008 5 * Last Update Date: 07/02/2008 6 * Upgrade to 0.17 6 7 */ 7 8 … … 25 26 import java.util.Iterator; 26 27 import java.util.StringTokenizer; 27 import java.io.FileOutputStream; 28 import java.io.File; 29 import java.io.RandomAccessFile; 28 30 29 import org.apache.hadoop.fs.FileSystem; 31 30 import org.apache.hadoop.fs.Path; … … 169 168 // input is Hbase format => TableInputFormat 170 169 conf.setInputFormat(TableInputFormat.class); 171 conf.setOutputPath(new Path(outputPath)); 170 // 0.16 171 // conf.setOutputPath(new Path(outputPath)); 172 Convert.setOutputPath(conf, new Path(outputPath)); 172 173 // delete the old path with the same name 173 FileSystem.get(conf).delete(new Path(outputPath) );174 FileSystem.get(conf).delete(new Path(outputPath),true); 174 175 JobClient.runJob(conf); 175 176 }
Note: See TracChangeset
for help on using the changeset viewer.