Hi
Looks like this is typical everywhere, however I have'nt figured out how to
resolve in my case.

There is nothing I have done explicitly regarding SLF4J.
Both Hadoop and Mahout environment are built by just simply downloading jar
files. Not built locally.
Both Hadoop and Mahout have been working fine as pseudo-distributed mode
for quite a while...

Also not sure what information would be required, however, some of the
class path that might relates to this are as follows.

MAHOUT_HOME="/usr/local/mahout-distribution-0.7"
MAHOUT_LOCAL="TRUE"
CLASS_PATH="/usr/local/hadoop:/usr/local/hadoop/conf:/usr/local/mahout-distribution-0.7/conf"
HADOOP_CONF_DIR="/usr/local/hadoop/conf"
HADOOP_HOME="/usr/local/hadoop"
JAVA_HOME="/usr/java/latest"

The only thing I have done to my existing healthy Hadoop/Mahout environment
was setting MAHOUT_LOCAL "TRUE".

...
MAHOUT_LOCAL is set, so we don't add HADOOP_CONF_DIR to classpath.
MAHOUT_LOCAL is set, running locally
SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in
[jar:file:/usr/local/mahout-distribution-0.7/mahout-examples-0.7-job.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/usr/local/mahout-distribution-0.7/lib/slf4j-jcl-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in
[jar:file:/usr/local/mahout-distribution-0.7/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an
explanation.
Exception in thread "main" java.lang.NoClassDefFoundError:
org/apache/hadoop/util/ProgramDriver
at org.apache.mahout.driver.MahoutDriver.main(MahoutDriver.java:96)
Caused by: java.lang.ClassNotFoundException:
org.apache.hadoop.util.ProgramDriver
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)
... 1 more

Regards,,,
Y.Mandai

Reply via email to