我使用 mahout 配置并运行示例,但出现以下错误:
hadoop binary is not in PATH,HADOOP_HOME/bin,HADOOP_PREFIX/bin, running local 初始化VM时出错
在我的, 中.bashrc
,我定义了以下别名:
JAVA_HOME,HADOOP_CONF_DIR,MAHOUT_CONF_DIR,HADOOP_HOME
我已经在以下位置进行了配置/etc/bash.bashrc
:
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk-i386
export PATH=$PATH:$JAVA_HOME/bin
export HADOOP_HOME=/home/user/hadoop-0.20.2
export PATH=$PATH:$HADOOP_HOME/bin
export MAHOUT_HOME=/home/user/mahout/trunk
export classpath=$classpath:$MAHOUT_HOME/src/conf
export HADOOP_CONF_DIR=/home/user/hadoop-0.20.2/conf
export classpath=$classpath:$HADOOP_CONF_DIR
但是,我有以下错误:
MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath. Error: Could not find or load main class classpath MAHOUT_LOCAL is set, running locally Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.