求指点为什么错呢?hadoop2.7.1的API就是这样的啊

查看数: 7289 | 评论数: 2 | 收藏 0
关灯 | 提示:支持键盘翻页<-左 右->
    组图打开中,请稍候......
发布时间: 2016-1-2 15:23

正文摘要:

回复

xuanxufeng 发表于 2016-1-2 20:50:16
程序没有错的,应该是包的问题,看看版本等  // Create a new Job
     Job job = Job.getInstance();
     job.setJarByClass(MyJob.class);

     // Specify various job-specific parameters     
     job.setJobName("myjob");

     job.setInputPath(new Path("in"));
     job.setOutputPath(new Path("out"));

     job.setMapperClass(MyJob.MyMapper.class);
     job.setReducerClass(MyJob.MyReducer.class);

     // Submit the job, then poll for progress until the job is complete
     job.waitForCompletion(true);


macan 发表于 2016-1-2 15:28:58
用FileInputFormat.addInputPath()也同样出错,不解啊
关闭

推荐上一条 /2 下一条