mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From JAGANADH G <jagana...@gmail.com>
Subject IntWritable cannot be cast to org.apache.mahout.math.VectorWritable
Date Tue, 09 Oct 2012 12:57:54 GMT
Hi
I was trying to train naive bayes calssifier in MAHOUT_LOCAL mode. (Mahout
0.7).
Whn I execute
 $bin/mahout trainnb -i ptvect1 -l pos,neg -o pmodel -li temp/labelIndex
-ow -c
I am getting this error

12/10/09 18:23:12 INFO compress.CodecPool: Got brand-new decompressor
12/10/09 18:23:12 WARN mapred.LocalJobRunner: job_local_0001
java.lang.ClassCastException: org.apache.hadoop.io.IntWritable cannot be
cast to org.apache.mahout.math.VectorWritable
 at
org.apache.mahout.classifier.naivebayes.training.IndexInstancesMapper.map(IndexInstancesMapper.java:29)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
 at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:370)
 at org.apache.hadoop.mapred.LocalJobRunner$Job.run(LocalJobRunner.java:212)
12/10/09 18:23:13 INFO mapred.JobClient:  map 0% reduce 0%
12/10/09 18:23:13 INFO mapred.JobClient: Job complete: job_local_0001
12/10/09 18:23:13 INFO mapred.JobClient: Counters: 0
12/10/09 18:23:13 INFO driver.MahoutDriver: Program took 3391 ms (Minutes:
0.056516666666666666)


Any idea how to resolve the same

-- 
**********************************
JAGANADH G
http://jaganadhg.in
*ILUGCBE*
http://ilugcbe.org.in

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message