所以我仍然是Mahout的新手,我想学习。我在我的机器上运行了Hadoop版本2.3.7和Mahout 0.12。我试图从this tutorial关于“二十个新闻组分类示例”中了解Mahout的分类是如何工作的。
我从Mahout目录运行此命令。
./examples/bin/classify-20newsgroups.sh
并选择第一个选项(cnaivebayes-MapReduce)来运行朴素贝叶斯分类。但是我得到了这样的错误。
Extracting...
tar (child): ../20news-bydate.tar.gz: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error is not recoverable: exiting now
+ echo 'Preparing 20newsgroups data'
Preparing 20newsgroups data
+ rm -rf /tmp/mahout-work-lia/20news-all
+ mkdir /tmp/mahout-work-lia/20news-all
+ cp -R '/tmp/mahout-work-lia/20news-bydate/*/*' /tmp/mahout-work-lia/20news-all
cp: cannot stat '/tmp/mahout-work-lia/20news-bydate/*/*': No such file or directory
/tmp/mahout-work-lia/20news-bydate
目录确实存在,我已经检查过了。 Hadoop也运行得很好。那我做错了什么?感谢任何帮助。谢谢。