Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hadoop WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

While running hadoop on Windows 7 64-bit, I got stuck on this:

WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
WARN common.Util: Path /hadoop-2.6.5/data/namenode should be specified as a URI in configuration files. Please update hdfs configuration.
WARN common.Util: Path /hadoop-2.6.5/data/namenode should be specified as a URI in configuration files

How can I solve these warnings?

like image 592
inos Avatar asked Apr 28 '17 06:04

inos


1 Answers

There are no native hadoop libraries for Windows (see Native Libraries Guide so the warning is expected and it's just a warning, not an error. The same applies for Mac OS X environments, no native libraries provided either.

If you want to suppress the WARN just edit the $HADOOP_CONF_DIR/log4j.properties (usually something like etc/hadoop/log4j.properties) and add the following:

log4j.logger.org.apache.hadoop.util.NativeCodeLoader=ERROR 

Only errors (and not warnings) will be logged from now on.

like image 192
RubenLaguna Avatar answered Oct 18 '22 01:10

RubenLaguna