Hi,

I need some help using Hadoop :

I'm trying to do some Dimensional reduction after this tutorial:
https://cwiki.apache.org/confluence/display/MAHOUT/Dimensional+Reduction

I created my tf-idf-vectors from text saved in lucene:
https://cwiki.apache.org/confluence/display/MAHOUT/Creating+Vectors+from+Text

Now, I got a problem when I try to transpose the tf-idf-vectors:
java.lang.ClassCastException: org.apache.hadoop.io.LongWritable cannot
be cast to org.apache.hadoop.io.IntWritable

So, my question:
What is the easiest way to get my data from
SequenceFile<LongWritable,VectorWritable> to
SequenceFile<IntWritable,VectorWritable>?
Or can I create this directly from a Lucene-Index?

Thx
Stefan

Reply via email to