eclipse运行wordcount案例结果出现false

package map.hhvc.mr;
import java.io.IOException;
import java.util.Iterator;

import org.apache.hadoop.conf.Configuration;
import org.apache.hadoop.fs.Path;
import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Job;
import org.apache.hadoop.mapreduce.Mapper;
import org.apache.hadoop.mapreduce.Reducer;
import org.apache.hadoop.mapreduce.lib.input.FileInputFormat;
import org.apache.hadoop.mapreduce.lib.output.FileOutputFormat;
//1.编写mapper类
class WordCountMapper extends Mapper<longWritable, Text, Text,IntWritable >{
Text k=new Text();
IntWritable val=new IntWritable ();
@Override
protected void map(longWritable key, Text value, org.apache.hadoop.mapreduce.Mapper<longWritable,Text,Text,IntWritable>.Context context) throws IOException ,InterruptedException
{
//1.获取一行文本 //hadoop hdfs mapreduce
String line =value.toString();
//2.空格作为分隔符切分文本,单词
String[] words=line.split(" ");// [hadoop,hdfs,mapreduce]
//3.单词后加1,输出
for(int i=0;i<words.length;i++) {
k.set(words[i]);
val.set(1);
context.write(k, val);
}
}
}
//2.编写reduce类
class WordCountReducer extends Reducer<Text, IntWritable, Text, IntWritable>{
@Override
protected void reduce(Text arg0, Iterable arg1,
Reducer<Text, IntWritable, Text, IntWritable>.Context arg2) throws IOException, InterruptedException {
int sum=0;//声明一个累加器
Iterator it=arg1.iterator();
while(it.hasNext()) {
sum=sum+it.next().get();
}
arg2.write(arg0, new IntWritable(sum));
// IntWritable i=new IntWritable();
}
}
//3.驱动类
public class WordCount {

public static void main(String[] args) throws IOException, ClassNotFoundException, InterruptedException {
//1.获取job对象
Configuration conf=new Configuration();
Job job=Job.getInstance(conf);
//2.设置驱动类
job.setJarByClass(WordCount.class);
//3.绑定mapper类和reducer类
job.setMapperClass(WordCountMapper.class);
job.setReducerClass(WordCountReducer.class);
//4.设置mapper的输出
job.setMapOutputKeyClass(Text.class);
job.setMapOutputKeyClass(IntWritable.class);
//5.设置reducer的输出
job.setOutputKeyClass(Text.class);
job.setOutputKeyClass(IntWritable.class);
//6.设置输入路径和输出路径
FileInputFormat.setInputPaths(job, new Path("d:/input/hello.txt"));
FileOutputFormat.setOutputPath(job, new Path("d:/out00"));
//7.提交job任务
boolean flag=job.waitForCompletion(true);
System.out.println(flag);
}
}

img

img

报错发全一下吧