You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nutch.apache.org by Markus Jelsma <ma...@openindex.io> on 2011/12/22 14:17:58 UTC

multiple slf bindings

Hi,

We're starting to see these errors:

attempt_201112221246_0001_m_000038_0: SLF4J: Class path contains multiple 
SLF4J bindings.
attempt_201112221246_0001_m_000038_0: SLF4J: Found binding in 
[jar:file:/opt/hadoop/hadoop-0.22.0/lib/slf4j-
log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
attempt_201112221246_0001_m_000038_0: SLF4J: Found binding in 
[jar:file:/mnt/disk_2/tmp/taskTracker/systems/jobcache/job_201112221246_0001/jars/lib/slf4j-
log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
attempt_201112221246_0001_m_000038_0: SLF4J: See 
http://www.slf4j.org/codes.html#multiple_bindings for an explanation.

One comes from the Hadoop dist and the other comes with Nutch. Any advice? 
Nutch is not going to build without one and the Hadoop daemon need their own 
binding too.

Cheers,

-- 
Markus Jelsma - CTO - Openindex

Re: multiple slf bindings

Posted by Lewis John Mcgibbney <le...@gmail.com>.
Hi Markus,

We experienced this with Gora a short time ago.

Hadoop 0.20.0 contains slf4j-log4j12.version 1.4.3
Nutch trunk contains the same library dependency @ version 1.6.1

You might be able to get round this by simply downgrading you Nutch or
upgrading your Hadoop dependecy to match up. I think this is the
simplest workaround.

Let us know how you get on.

Lewis

On Fri, Dec 23, 2011 at 12:41 PM, Markus Jelsma
<ma...@openindex.io> wrote:
> anyone?
>
> this only happens with Nutch on a 0.22.0 cluster.
>
>
> On Thursday 22 December 2011 14:17:58 Markus Jelsma wrote:
>> Hi,
>>
>> We're starting to see these errors:
>>
>> attempt_201112221246_0001_m_000038_0: SLF4J: Class path contains multiple
>> SLF4J bindings.
>> attempt_201112221246_0001_m_000038_0: SLF4J: Found binding in
>> [jar:file:/opt/hadoop/hadoop-0.22.0/lib/slf4j-
>> log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> attempt_201112221246_0001_m_000038_0: SLF4J: Found binding in
>> [jar:file:/mnt/disk_2/tmp/taskTracker/systems/jobcache/job_201112221246_000
>> 1/jars/lib/slf4j-
>> log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
>> attempt_201112221246_0001_m_000038_0: SLF4J: See
>> http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
>>
>> One comes from the Hadoop dist and the other comes with Nutch. Any advice?
>> Nutch is not going to build without one and the Hadoop daemon need their
>> own binding too.
>>
>> Cheers,
>
> --
> Markus Jelsma - CTO - Openindex



-- 
Lewis

Re: multiple slf bindings

Posted by Markus Jelsma <ma...@openindex.io>.
anyone?

this only happens with Nutch on a 0.22.0 cluster.


On Thursday 22 December 2011 14:17:58 Markus Jelsma wrote:
> Hi,
> 
> We're starting to see these errors:
> 
> attempt_201112221246_0001_m_000038_0: SLF4J: Class path contains multiple
> SLF4J bindings.
> attempt_201112221246_0001_m_000038_0: SLF4J: Found binding in
> [jar:file:/opt/hadoop/hadoop-0.22.0/lib/slf4j-
> log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> attempt_201112221246_0001_m_000038_0: SLF4J: Found binding in
> [jar:file:/mnt/disk_2/tmp/taskTracker/systems/jobcache/job_201112221246_000
> 1/jars/lib/slf4j-
> log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
> attempt_201112221246_0001_m_000038_0: SLF4J: See
> http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
> 
> One comes from the Hadoop dist and the other comes with Nutch. Any advice?
> Nutch is not going to build without one and the Hadoop daemon need their
> own binding too.
> 
> Cheers,

-- 
Markus Jelsma - CTO - Openindex