在mahout安装目录下输入mahout 提示 ERROR: Could not find mahout-examples-*.job

错误:
ERROR: Could not find mahout-examples-*.job in /home/grid/mahout-distribution-0.8 or /home/grid/mahout-distribution-0.8/examples/target, please run 'mvn install' to create the .job file


问题分析:
          是因为下载了源码包,其examples/target目录下面未包含example的jar包;其实其错误也提示了,可以通过mvn install打出jar包;


解决办法:
         首先安装maven工具,配置maven环境变量,这个可以参考网上的教程;


         然后进入/home/grid/mahout-distribution-0.6/examples 目录,运行mvn命令:
命令如下所示:
               mvn clean install -Dmaven.test.skip=true


    -Dmaven.test.skip=true 参数是不执行测试代码,如果不带此参数,还是打不出包的,会报错;


至此,此问题就算解决了。

原文地址:https://www.cnblogs.com/superAng/p/5703712.html