在“Mahout in Action”中运行示例代码时出现 IOException
我正在学习 Mahout 并阅读“Mahout in Action”。当我尝试运行chapter7 SimpleKMeansClustering.java中的示例代码时,弹出异常:
Exception in thread "main" java.io.IOException: error value class: 0.0: null is not class org.apache.mahout.clustering.WeightedPropertyVectorWritable 在 org.apache.hadoop.io.SequenceFile$Reader.next(SequenceFile.java:1874) 在 SimpleKMeansClustering.main(SimpleKMeansClustering.java:95)
有谁对这个异常有任何想法吗?我已经尝试解决这个问题很长时间了,但没有任何想法。而且互联网上的来源很少。
有什么提示吗?
提前致谢
I'm learning Mahout and reading "Mahout in Action". When I tried to run the sample code in chapter7 SimpleKMeansClustering.java, an exception popped up:
Exception in thread "main" java.io.IOException: wrong value class: 0.0: null is not class org.apache.mahout.clustering.WeightedPropertyVectorWritable
at org.apache.hadoop.io.SequenceFile$Reader.next(SequenceFile.java:1874)
at SimpleKMeansClustering.main(SimpleKMeansClustering.java:95)
Does anyone have any idea about this exception? I have been trying to solve it for a long time and haven't got any idea. And there are few sources on the internet.
Any hints?
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我想这在曼宁名单上已经得到了回答。某个地方有一个错误的输入文件:一个杂散文件(如“_SUCCESS”),或者您指向了错误的目录,或者输入的格式确实不正确。
I think this was answered on the Manning list. There is a bad input file in there somewhere: a stray file (like "_SUCCESS"), or you're pointing at the wrong directory, or the input is indeed not in the right format.