[root@master bin]# ./mahout
Running on hadoop, using /opt/modules/hadoop-2.6.0/bin/hadoop and HADOOP_CONF_DIR=
ERROR: Could not find mahout-examples-*.job in /home/mahout-distribution-0.9 or /home/mahout-distribution-0.9/examples/target, please run 'mvn install' to create the .job file
·用文本编辑器打开/etc/profile
·在profile文件末尾加入:
export JAVA_HOME=/usr/share/jdk1.6.0_14 (你java的安装目录)
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
保存退出后,执行source /etc/profile就可以了
·在profile文件末尾加入:
export JAVA_HOME=/usr/share/jdk1.6.0_14 (你java的安装目录)
export PATH=$JAVA_HOME/bin:$PATH
export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
保存退出后,执行source /etc/profile就可以了
温馨提示:答案为网友推荐,仅供参考