Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Plain View
Mahout, mail # user - SLF4J Exception while running RecommenderJob


+
Devadas Mallya 2012-04-18, 02:29
+
Tyson Hamilton 2012-04-18, 13:33
+
Ioan Eugen Stan 2012-04-18, 14:10
Copy link to this message
-
Re: SLF4J Exception while running RecommenderJob
Lance Norskog 2012-04-19, 02:59
Sometimes you can have different versions of the same library and use
the wrong version. I have to remove my whole local maven repository
every few months, and let my projects download everything again.

On Wed, Apr 18, 2012 at 7:10 AM, Ioan Eugen Stan <[EMAIL PROTECTED]> wrote:
> Hi Devadas,
>
> If you are using Maven, you may get that version of slf4j as a
> transitive dependency. <exclude> it from that module's dependency.
>
> Cheers,
>
> 2012/4/18 Tyson Hamilton <[EMAIL PROTECTED]>:
>> 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" <[EMAIL PROTECTED]> 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.
>>>
>
>
>
> --
> Ioan Eugen Stan
> http://ieugen.blogspot.com/

--
Lance Norskog
[EMAIL PROTECTED]