2014-07-17 6 views
0

J'ai essayé de travailler avec cornac en utilisant le lien suivant: http://girlincomputerscience.blogspot.in/2010/11/apache-mahout.htmlComment travailler avec Mahout?

Quand j'exécute la commande

[email protected]:~/Downloads/mahout-distribution-0.9$ bin/mahout recommenditembased --input mydata.dat --usersFile user.dat --numRecommendations 2 --output output/ --similarityClassname SIMILARITY_PEARSON_CORRELATION

il montre:

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.

Ce qui peut être possible raisons pour les erreurs?

Répondre

0

Vous devez configurer Apache Hadoop premier (également décrit 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 

Ensuite, essayez d'installer Apache Mahout

configuration 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 

variables d'environnement de configuration:

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 

Maintenant, votre installation Mahout devrait fonctionner correctement (lisez here pour plus d'informations).