hello common-user:

I use BooleanWritable type as Mapper's out key,bug it seems have a problem.

such as:

10/07/22 04:01:42 INFO mapred.JobClient:  map 100% reduce 30%
10/07/22 04:01:44 INFO mapred.JobClient: Task Id : 
attempt_201007220357_0001_r_000000_1, Status : FAILED
java.lang.ArrayIndexOutOfBoundsException: 1
        at 
org.apache.hadoop.io.WritableComparator.readInt(WritableComparator.java:153)
        at 
org.apache.hadoop.io.BooleanWritable$Comparator.compare(BooleanWritable.java:103)
        at 
org.apache.hadoop.mapreduce.ReduceContext.nextKeyValue(ReduceContext.java:120)
        at 
org.apache.hadoop.mapreduce.ReduceContext.nextKey(ReduceContext.java:92)
        at org.apache.hadoop.mapreduce.Reducer.run(Reducer.java:175)
        at 
org.apache.hadoop.mapred.ReduceTask.runNewReducer(ReduceTask.java:566)
        at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:408)
        at org.apache.hadoop.mapred.Child.main(Child.java:170)

and I change it to Text type ,the problem was solved.

        Best BadGuys
        [email protected] 
          2010-07-24 

Reply via email to