mahout-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: Do not able to build mahout-core-0.7-SNAPSHOT.job(Recommendation on hadoop)
Date Sat, 03 Mar 2012 03:15:18 GMT
Please just use one thread for this project. It is easier to track and help you.

On Fri, Mar 2, 2012 at 7:08 PM, Lance Norskog <goksron@gmail.com> wrote:
> Do 'install' on the maven build, not 'package'. Install apparently does more.
>
> Look at examples/bin/asf-email-examples.sh and
> examples/bin/factorize-movielens-1M.sh . These show how the
> recommender jobs work.
>
> On Thu, Mar 1, 2012 at 9:38 AM, manish dunani <manishd207@gmail.com> wrote:
>> I am using ubuntu 11.10.
>>
>> I downloaded mahout_trunk using
>>
>> "svn co http://svn.apache.org/repos/asf/mahout/trunk"
>>
>> in directory /opt.
>> After that i use "mvn install" command.
>>
>> i already put linked-simple-sorted.txt in hdfs.
>> and also had put users.txt in input directory of hdfs.
>>
>> After entering in /opt/mahout/core   directory.
>>
>> when ever i try to build mahout-core-0.7-SNAPSHOT.job using "mvn clean
>> package".
>> It will not create any mahout-core-0.7-SNAPSHOT.job .
>>
>> i am only see
>> mahout-core-0.7-SNAPSHOT.jar,mahout-core-0.7-SNAPSHOT-job.jar,mahout-core-0.7-SNAPSHOT-tests.jar.
>>
>> when ever i try to run from this command:
>> hduser@ubuntu:/usr/local/hadoop$ bin/hadoop jar
>> /opt/mahout/core/target/mahout-core-0.7-SNAPSHOT.jar
>> org.apache.mahout.cf.taste.hadoop.item.RecommenderJob
>> -Dmapred.input.dir=input/input.txt -Dmapred.output.dir=output --usersFile
>> input/users.txt --booleanData
>>
>> I got the following error.
>>
>> Exception in thread "main" java.lang.NoClassDefFoundError:
>> org/apache/commons/cli2/Option
>>    at java.lang.Class.forName0(Native Method)
>>    at java.lang.Class.forName(Class.java:264)
>>    at org.apache.hadoop.util.RunJar.main(RunJar.java:149)
>> Caused by: java.lang.ClassNotFoundException: org.apache.commons.cli2.Option
>>    at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
>>    at java.security.AccessController.doPrivileged(Native Method)
>>    at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
>>    at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
>>    at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
>>
>> If i am try to run using this command:
>> hduser@ubuntu:/usr/local/hadoop$ bin/hadoop jar
>> /opt/mahout/core/target/mahout-core-0.7-SNAPSHOT.job
>> org.apache.mahout.cf.taste.hadoop.item.RecommenderJob
>> -Dmapred.input.dir=input/input.txt -Dmapred.output.dir=output --usersFile
>> input/users.txt --booleanData
>>
>> i got the following error:
>>
>> Exception in thread "main" java.io.IOException: Error opening job jar:
>> /opt/mahout/core/target/mahout-core-0.7-SNAPSHOT.job
>>    at org.apache.hadoop.util.RunJar.main(RunJar.java:90)
>> Caused by: java.util.zip.ZipException: error in opening zip file
>>    at java.util.zip.ZipFile.open(Native Method)
>>    at java.util.zip.ZipFile.<init>(ZipFile.java:131)
>>    at java.util.jar.JarFile.<init>(JarFile.java:150)
>>    at java.util.jar.JarFile.<init>(JarFile.java:87)
>>    at org.apache.hadoop.util.RunJar.main(RunJar.java:88)
>>
>>
>>  I tried a lot.but,do not come out from this error.
>>
>> What i have to do?
>>
>> your help will be appreciated.
>>
>> Is there any another way to genarate recommendation on hadoop?
>>
>>
>> --
>> MANISH DUNANI
>> -THANX
>>
>> manishd207@gmail.com
>
>
>
> --
> Lance Norskog
> goksron@gmail.com



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message