WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platfo

阅读更多

安装 hadoop 2.4.1 报错信息

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

 

[root@db96 hadoop]# hadoop dfs -put ./in
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

14/07/17 17:07:22 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
put: `./in': No such file or directory

 

主要原因:

[root@bogon native]# ldd libhadoop.so
	linux-gate.so.1 =>  (0xf777b000)
	libdl.so.2 => /lib/libdl.so.2 (0xf7745000)
	libjvm.so => not found
	libc.so.6 => /lib/libc.so.6 (0xf7585000)
	/lib/ld-linux.so.2 (0x565df000)
[root@bogon native]# ldd libhadoop.so.1.0.0 
	linux-gate.so.1 =>  (0xf7759000)
	libdl.so.2 => /lib/libdl.so.2 (0xf7723000)
	libjvm.so => not found
	libc.so.6 => /lib/libc.so.6 (0xf7563000)
	/lib/ld-linux.so.2 (0x565cb000)
[root@bogon native]# ldd libhadoop.so.1.0.0 
	linux-gate.so.1 =>  (0xf7715000)
	libdl.so.2 => /lib/libdl.so.2 (0xf76df000)
	libjvm.so => not found
	libc.so.6 => /lib/libc.so.6 (0xf751f000)
	/lib/ld-linux.so.2 (0x565a8000)
[root@bogon native]# file libhadoop.so.1.0.0 
libhadoop.so.1.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=f39a66d3529c512f0a20e6b4adc8be6985df267b, not stripped
[root@bogon native]# ls

 

 

系统是 64位的,而hadoop2.4.1 是32 位的,需要重新安装一个64位的版本

 

[root@bogon native]# file libhadoop.so
libhadoop.so: symbolic link to `libhadoop.so.1.0.0'
[root@bogon native]# file libhadoop.so.1.0.0 
libhadoop.so.1.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, BuildID[sha1]=f10b72d3bd2583ab9b126ede6ca886c3c9cc8a88, not stripped
[root@bogon native]# 

 

 替换成 hadoop2.7.1 版本没有问题

 

 

 

 

 

 

 

 

 

 

 

 

 

捐助开发者 

在兴趣的驱动下,写一个免费的东西,有欣喜,也还有汗水,希望你喜欢我的作品,同时也能支持一下。 当然,有钱捧个钱场(支持支付宝和微信 以及扣扣群),没钱捧个人场,谢谢各位。

 

个人主页:http://knight-black-bob.iteye.com/


WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platfo_第1张图片WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platfo_第2张图片WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platfo_第3张图片
 
 
 谢谢您的赞助,我会做的更好!

你可能感兴趣的:(hadoop,exception)