$ ./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
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