hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From liw_goldgov <liw_gold...@163.com>
Subject It is possible a bug,about BooleanWritable
Date Sat, 24 Jul 2010 07:02:15 GMT
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
        wlwolf87@gmail.com 
          2010-07-24 
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message