【问题标题】:How to work with Mahout?如何使用 Mahout?
【发布时间】:2014-09-08 02:51:33
【问题描述】:

我尝试使用以下链接与 mahout 合作: http://girlincomputerscience.blogspot.in/2010/11/apache-mahout.html

当我执行命令时

anand@ubuntu:~/Downloads/mahout-distribution-0.9$ bin/mahout recommenditembased --input mydata.dat --usersFile user.dat --numRecommendations 2 --output output/ --similarityClassname SIMILARITY_PEARSON_CORRELATION

它显示:

hadoop binary is not in PATH,HADOOP_HOME/bin,HADOOP_PREFIX/bin, running locally Error occurred during initialization of VM Could not reserve enough space for object heap Could not create the Java virtual machine.

错误的可能原因是什么?

【问题讨论】:

    标签: apache hadoop cloud mahout recommendation-engine


    【解决方案1】:

    您需要先设置 Apache Hadoop(也描述为 here):

    $ http://mirror.metrocast.net/apache/hadoop/common/hadoop-1.2.1/hadoop-1.2.1-bin.tar.gz
    $ tar zxf hadoop-1.2.1-bin.tar.gz
    $ cd hadoop-1.2.1
    $ export PATH=`pwd`/bin:$PATH
    

    然后尝试设置 Apache Mahout

    Apache Mahout 设置

    $ wget -c http://archive.apache.org/dist/mahout/0.9/mahout-distribution-0.9.tar.gz
    $ tar zxf mahout-distribution-0.9.tar.gz
    $ cd mahout-distribution-0.9
    

    设置环境变量:

    export HADOOP_HOME=/path/to/hadoop-1.2.1
    export PATH=$HADOOP_HOME/bin:$PATH
    export MAHOUT_HOME=/path/to/mahout-distribution-0.9
    export PATH=$MAHOUT_HOME/bin:$PATH
    

    现在您的 Mahout 安装应该可以正常工作了(阅读 here 了解更多信息)。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2014-02-14
      • 1970-01-01
      • 2011-05-03
      • 2012-07-23
      • 2014-06-10
      • 2013-09-17
      • 2011-02-13
      相关资源
      最近更新 更多