I have not used this example you mention, however I have experienced a
similar exception before.

It would seem that you have an incompatibility with the binding you are
using and SLF4J. You will need to download a newer version from the SLF4J
website and have it available as a resource for your job. Each of the
bindings are available in a JAR format, and serve to abstract you from the
complexities of the underlying log implementation.

-Tyson


On Apr 18, 2012 12:22 AM, "Devadas Mallya" <mallya.deva...@gmail.com> wrote:

> Hi,
>    I am trying to run the RecommenderJob Map/Reduce class.
>
> However I get an error saying SLF4J is incompatible with this binding.
>
> The command I am using is:
>
> bin/hadoop jar mahout-core-0.7-SNAPSHOT-job
> org.apache.mahout.cf.taste.hadoop.item.RecommenderJob
> -Dmapred.input.dir=/user/input/ratingsLess.txt
> -Dmapred.output.dir=/user/input/output --usersFile input/users.txt
> --numRecommendations 5 -s SIMILARITY_TANIMOTOCOEFFICIENT
>
> The error is:
>
> SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding.
> SLF4J: Your binding is version 1.5.5 or earlier.
> SLF4J: Upgrade your binding to version 1.6.x. or 2.0.x
> Exception in thread "main" java.lang.NoSuchMethodError:
>
> org.slf4j.impl.StaticLoggerBinder.getSingleton()Lorg/slf4j/impl/StaticLoggerBinder;
>    at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
>    at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
>    at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
>    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
>    at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
>    at org.apache.mahout.common.AbstractJob.<clinit>(AbstractJob.java:88)
>    at java.lang.Class.forName0(Native Method)
>    at java.lang.Class.forName(Class.java:247)
>    at org.apache.hadoop.util.RunJar.main(RunJar.java:149)
>
>
> Please let me know what I'm missing.
>
> Thanks.
>
> Dev.
>

Reply via email to