使用mahout seqdumper转储序列文件

时间:2012-06-22 11:51:42

标签: hadoop mahout

我正在尝试使用seqdumper使用以下命令转储序列文件:

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

但它会引发以下异常:

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

我已经尝试将$ MAHOUT_HOME / core / target目录中的mahout jar添加到$ HADOOP_CLASSPATH但无济于事。

有人能指出正确的方向吗?

编辑:

我也尝试通过hdfs和

查看文件
hadoop dfs -text /home/hduser/input_file

但我得到同样的错误。

1 个答案:

答案 0 :(得分:1)

core/target不包含类。您至少在寻找core/target/classes。但是,如果脚本已经设置了类路径,则MAHOUT_HOME设置正确,则不需要执行任何此类操作。

相关问题