错误:找不到或加载主类org.apache.mahout.driver

时间:2019-03-27 03:04:06

标签: scala apache-spark mahout collaborative-filtering mahout-recommender

我正在尝试在本地计算机上安装独立Mahout,可以在其中运行spark-itemsimilarity命令。我收到以下错误消息:

$ ./mahout
Adding lib/ to CLASSPATH
MAHOUT_LOCAL is set, running locally 
Error: Could not find or load main class org.apache.mahout.driver.MahoutDriver

类似地用于火花项相似性

$ ./mahout spark-itemsimilarity
Adding lib/ to CLASSPATH
/Users/james/mahout/examples/target/classes:
...
...
:/Users/james/mahout/bin/mahout-spark-class.sh
Error: Could not find or load main class org.apache.mahout.drivers.ItemSimilarityDriver

这是我尝试过的-

  1. 下载了Mahout 0.14,Spark和Hadoop
  2. 使用mvn -DskipTests -X全新安装从源代码构建Mahout
  3. 通过mvn测试进行了测试
  4. bashrc_profile中的环境变量
export JAVA_HOME=/Library/Java/JavaVirtualMachines/jdk1.8.0_65.jdk/Contents/Home
export MAHOUT_HOME=/Users/james/mahout
export MAHOUT_LOCAL=true
export SPARK_HOME=/Users/james/spark
export HADOOP_HOME=/Users/james/hadoop
export PATH=$PATH:$HADOOP_HOME/bin:$HADOOP_HOME/sbin



export PATH=$PATH$:MAHOUT_HOME/bin:$:MAHOUT_HOME/lib:$HADOOP_HOME/bin:$SPARK_HOME/bin:$JAVA_HOME/bin
  1. 启动Spark master(独立)

0 个答案:

没有答案