Hadoop WARN util.NativeCodeLoader: unable to load native-hadoop library for your platform ... using native Java classes where applicable

When running hadoop

on Windows 7 64-bit, I am stuck with 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 resolve these warnings?

+3


source to share


1 answer


There are no built-in hadoop libraries on Windows (see the Native Libraries Guide , so a warning is expected and is just a warning, not an error. The same is true for Mac OS X environments and does not contain any built-in libraries.

If you want to disable WARN

, just edit $HADOOP_CONF_DIR/log4j.properties

(usually something like etc/hadoop/log4j.properties

) and add the following:



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

      

Now only errors (and not warnings) will be logged.

+3


source







All Articles