adivasile
adivasile

Reputation: 2487

Dumping sequence files with mahout seqdumper

I'm trying to use seqdumper to dump a sequence file using the following command:

/opt/mahout/bin/mahout seqdumper -i ~/input_file -o ~/output

but it throws the following exception:

Exception in thread "main" java.lang.RuntimeException: java.io.IOException: WritableName can't load class: org.apache.mahout.clustering.WeightedPropertyVectorWritable

I've tried adding the mahout jars in the $MAHOUT_HOME/core/target directory to $HADOOP_CLASSPATH but to no avail.

Can anyone point in the right direction here?

EDIT:

I've also tried viewing the file through hdfs with

hadoop dfs -text /home/hduser/input_file

but I get the same error.

Upvotes: 0

Views: 3350

Answers (1)

Sean Owen
Sean Owen

Reputation: 66876

core/target doesn't contain classes. You are looking for core/target/classes at least. But, you should not need to do any such thing if MAHOUT_HOME is set correctly as the script already sets up the classpath.

Upvotes: 1

Related Questions