Ignore:
Timestamp:
Jul 3, 2008, 4:45:54 PM (16 years ago)
Author:
waue
Message:

downgrade from 0.17 to 0.16
test for work -> not yet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sample/hadoop-0.16/tw/org/nchc/code/WordCount.java

    r23 r25  
    110110    conf.setNumMapTasks(mapTasks);
    111111    conf.setNumReduceTasks(reduceTasks);
    112     // 0.16
    113     // conf.setInputPath(new Path(wc.filepath));
    114     Convert.setInputPath(conf, new Path(wc.filepath));
     112   
     113    conf.setInputPath(new Path(wc.filepath));
     114
    115115    conf.setOutputKeyClass(Text.class);
    116116    conf.setOutputValueClass(IntWritable.class);
    117     // 0.16
    118     // conf.setOutputPath(new Path(wc.outputPath));
    119     Convert.setOutputPath(conf, new Path(wc.outputPath));
     117
     118    conf.setOutputPath(new Path(wc.outputPath));
    120119
    121120    conf.setMapperClass(MapClass.class);
     
    125124    // Delete the output directory if it exists already
    126125    Path outputDir = new Path(wc.outputPath);
    127     // 0.16
    128     FileSystem.get(conf).delete(outputDir,true);
    129 
     126    FileSystem.get(conf).delete(outputDir);
    130127    JobClient.runJob(conf);
    131128  }
Note: See TracChangeset for help on using the changeset viewer.