You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@mahout.apache.org by Alan Said <Al...@dai-labor.de> on 2010/11/18 11:16:54 UTC
org.apache.mahout.cf.taste.hadoop.item.RecommenderJob
Hi all,
While trying to run the example from https://cwiki.apache.org/confluence/display/MAHOUT/Itembased+Collaborative+Filtering
With the following command
bin/mahout org.apache.mahout.cf.taste.hadoop.item.RecommenderJob --output useroutput -n 10 --usersFile users_test.txt -s SIMILARITY_PEARSON_CORRELATION --input userdata/
I keep getting this error:
Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: userdata/
I've tried all kinds of path combinations, still same error.
Another weird thing is if I put --input userdata/ as the first argument I get
Unexpected usage: <command> [Generic Options] [Job-Specific Options]
I'm obviously missing something, so any help would be appreciated.
/Alan
--
***************************************
M.Sc.(Eng.) Alan Said
Compentence Center Information Retrieval & Machine Learning
Technische Universität Berlin / DAI-Lab
Sekr. TEL 14 Ernst-Reuter-Platz 7
10587 Berlin / Germany
Phone: 0049 - 30 - 314 74072
Fax: 0049 - 30 - 314 74003
E-mail: alan.said@dai-lab.de
http://www.dai-labor.de
***************************************
RE: org.apache.mahout.cf.taste.hadoop.item.RecommenderJob
Posted by Alan Said <Al...@dai-labor.de>.
Solved it, had an whitespace at the end of the path ;)
/A
-----Original Message-----
From: Sebastian Schelter [mailto:ssc@apache.org]
Sent: Thursday, November 18, 2010 10:25 AM
To: user@mahout.apache.org
Subject: Re: org.apache.mahout.cf.taste.hadoop.item.RecommenderJob
Hi Alan,
can you try to specify the full path to the input directory? You should
also be able to omit the full classname and use bin/mahout
recommenditembased instead.
You could also try to manually start the hadoop job like this:
hadoop jar<path_to_job-jar> org.apache.mahout.cf.taste.hadoop.item.RecommenderJob --output useroutput -n 10 --usersFile users_test.txt -s SIMILARITY_PEARSON_CORRELATION --input userdata/
--sebastian
On 18.11.2010 11:16, Alan Said wrote:
> Hi all,
> While trying to run the example from https://cwiki.apache.org/confluence/display/MAHOUT/Itembased+Collaborative+Filtering
>
> With the following command
> bin/mahout org.apache.mahout.cf.taste.hadoop.item.RecommenderJob --output useroutput -n 10 --usersFile users_test.txt -s SIMILARITY_PEARSON_CORRELATION --input userdata/
>
> I keep getting this error:
> Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: userdata/
>
> I've tried all kinds of path combinations, still same error.
>
> Another weird thing is if I put --input userdata/ as the first argument I get
> Unexpected usage:<command> [Generic Options] [Job-Specific Options]
>
> I'm obviously missing something, so any help would be appreciated.
>
> /Alan
>
Re: org.apache.mahout.cf.taste.hadoop.item.RecommenderJob
Posted by Sebastian Schelter <ss...@apache.org>.
Hi Alan,
can you try to specify the full path to the input directory? You should
also be able to omit the full classname and use bin/mahout
recommenditembased instead.
You could also try to manually start the hadoop job like this:
hadoop jar<path_to_job-jar> org.apache.mahout.cf.taste.hadoop.item.RecommenderJob --output useroutput -n 10 --usersFile users_test.txt -s SIMILARITY_PEARSON_CORRELATION --input userdata/
--sebastian
On 18.11.2010 11:16, Alan Said wrote:
> Hi all,
> While trying to run the example from https://cwiki.apache.org/confluence/display/MAHOUT/Itembased+Collaborative+Filtering
>
> With the following command
> bin/mahout org.apache.mahout.cf.taste.hadoop.item.RecommenderJob --output useroutput -n 10 --usersFile users_test.txt -s SIMILARITY_PEARSON_CORRELATION --input userdata/
>
> I keep getting this error:
> Exception in thread "main" org.apache.hadoop.mapreduce.lib.input.InvalidInputException: Input path does not exist: userdata/
>
> I've tried all kinds of path combinations, still same error.
>
> Another weird thing is if I put --input userdata/ as the first argument I get
> Unexpected usage:<command> [Generic Options] [Job-Specific Options]
>
> I'm obviously missing something, so any help would be appreciated.
>
> /Alan
>