Failed to load class org.slf4j.impl.StaticLoggerBinder and failed to load native-hadoop library

I am new to Hadoop, and during one MapReduce task, I got the following error:

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation 
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
15/09/18 07:31:10 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

How can i solve this?

Thanks!

+4
source share
1 answer

Here is what your mistakes mean:

For SLF4J:

SLF4J: **Failed to load class** "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation 
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

As you can tell, you do not have the corresponding class (* Failed to load the class *) for it SLF4Jto work, so it does not log ((NOP) logger) by default. Following the link provided , you can see what the solution is for this:

( ) slf4j-nop.jar, slf4j-simple.jar, slf4j-log4j12.jar, slf4j-jdk14.jar logback-classic.jar

Hadoop:

15/09/18 07:31:10 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

, , Hadoop. :

Java. , . * nix libhadoop.so.

, , .

+7

Source: https://habr.com/ru/post/1608038/


All Articles