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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With