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

    r9 r18  
    33 * Editor: Waue Chen
    44 * From :  NCHC. Taiwn
    5  * Last Update Date: 06/13/2008
     5 * Last Update Date: 07/02/2008
     6 * Upgrade to 0.17
    67 */
    78
     
    2526import java.util.Iterator;
    2627import java.util.StringTokenizer;
    27 import java.io.FileOutputStream;
    28 import java.io.File;
    29 import java.io.RandomAccessFile;
     28
    3029import org.apache.hadoop.fs.FileSystem;
    3130import org.apache.hadoop.fs.Path;
     
    169168    // input is Hbase format => TableInputFormat
    170169    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));
    172173//     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);
    174175    JobClient.runJob(conf);
    175176  }
Note: See TracChangeset for help on using the changeset viewer.