Quantcast
Channel: Apache Timeline
Viewing all articles
Browse latest Browse all 5648

Mahout v0.9 is not working with 2.2.0-cdh5.0.0-beta-1

$
0
0
Hi

Does Mahout v0.9 supports Cloudera Hadoop v5 (2.2.0-cdh5.0.0-beta-1)?
I have managed to installed and run all test cases under the Mahout v0.9 without any issue.
Please see below for the evident of the test cases.
However I have no success to run the example from http://girlincomputerscience.blogspot.com.au/2010/11/apache-mahout.html and got the following errors.
Note: I have set the CLASSPATH to point to all of Mahout's jar files.

<snip>
$ env | grep CLASS
CLASSPATH=:/usr/lib/hadoop-0.20-mapreduce/lib:/usr/lib/hadoop-0.20-mapreduce/lib:/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/core/target/mahout-core-0.9.jar:/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/core/target/mahout-core-0.9-job.jar:/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/core/target/mahout-core-0.9-sources.jar:/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/core/target/mahout-core-0.9-tests.jar:/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/math/target/mahout-math-0.9.jar:/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/math/target/mahout-math-0.9-sources.jar:/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/math/target/mahout-math-0.9-tests.jar:/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/integration/target/mahout-integration-0.9.jar:/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/integration/target/mahout-integration-0.9-sources.jar

$ export MAHOUT_HOME=/ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9
$ export PATH=$MAHOUT_HOME/bin:$PATH

oracle [ at ] bpdevdmsdbs01:BDMSSI1D1 ---- /ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/nem-dms -----
$ mahout recommenditembased --input mydata.dat --usersFile user.dat --numRecommendations 2 --output output/ --similarityClassname SIMILARITY_PEARSON_CORRELATION
Running on hadoop, using /usr/lib/hadoop-0.20-mapreduce/bin/hadoop and HADOOP_CONF_DIR=
MAHOUT-JOB: /ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/examples/target/mahout-examples-0.9-job.jar
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/PlatformName
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.PlatformName
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.apache.hadoop.util.PlatformName. Program will exit.
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/RunJar
Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.RunJar
at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
Could not find the main class: org.apache.hadoop.util.RunJar. Program will exit.
</snip>

<snip>
[INFO] --- maven-install-plugin:2.5.1:install (default-install) @ mahout-math-scala ---
[INFO] Installing /ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/math-scala/target/mahout-math-scala-0.9.jar to /home/oracle/.m2/repository/org/apache/mahout/mahout-math-scala/0.9/mahout-math-scala-0.9.jar
[INFO] Installing /ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/math-scala/pom.xml to /home/oracle/.m2/repository/org/apache/mahout/mahout-math-scala/0.9/mahout-math-scala-0.9.pom
[INFO] Installing /ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/math-scala/target/mahout-math-scala-0.9-tests.jar to /home/oracle/.m2/repository/org/apache/mahout/mahout-math-scala/0.9/mahout-math-scala-0.9-tests.jar
[INFO] Installing /ora/db002/stg001/BDMSL1D/hadoop/nem-dms/devices/mahout/mahout-distribution-0.9/math-scala/target/mahout-math-scala-0.9-sources.jar to /home/oracle/.m2/repository/org/apache/mahout/mahout-math-scala/0.9/mahout-math-scala-0.9-sources.jar
[INFO]

Viewing all articles
Browse latest Browse all 5648

Trending Articles