肖韬组会报告MapReduce编程实例浅析.pptVIP

  • 2
  • 0
  • 约1.01万字
  • 约 37页
  • 2019-11-23 发布于广东
  • 举报
* * * * * * * * * * * * job.setReducerClass(IntSumReducer.class); Set the?Reducer?for the job. job.setOutputKeyClass(Text.class); Set the key class for the job output data. job.setOutputValueClass(IntWritable.class); Set the value class for job outputs. FileInputFormat.addInputPath(job, new Path(otherArgs[0])); 原型:static?void addInputPath(JobConf?conf,?Path?path); Add a?Path?to the list of inputs for the map-reduce job. FileOutputFormat.setOutputPath(job, new Path(otherArgs[1])); 原型:static?void setOutputPath (JobConf conf,?Path?outputDir) ?Set the?Path?of the output directory for the ma

文档评论(0)

1亿VIP精品文档

相关文档