当前位置:   article > 正文

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

warn nativecodeloader: unable to load native-hadoop library for your platfor

安装 hadoop 2.4.1 报错信息

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

 

  1. [root@db96 hadoop]# hadoop dfs -put ./in
  2. DEPRECATED: Use of this script to execute hdfs command is deprecated.
  3. Instead use the hdfs command for it.
  4. 14/07/17 17:07:22 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
  5. put: `./in': No such file or directory

 

主要原因:

  1. [root@bogon native]# ldd libhadoop.so
  2. linux-gate.so.1 => (0xf777b000)
  3. libdl.so.2 => /lib/libdl.so.2 (0xf7745000)
  4. libjvm.so => not found
  5. libc.so.6 => /lib/libc.so.6 (0xf7585000)
  6. /lib/ld-linux.so.2 (0x565df000)
  7. [root@bogon native]# ldd libhadoop.so.1.0.0
  8. linux-gate.so.1 => (0xf7759000)
  9. libdl.so.2 => /lib/libdl.so.2 (0xf7723000)
  10. libjvm.so => not found
  11. libc.so.6 => /lib/libc.so.6 (0xf7563000)
  12. /lib/ld-linux.so.2 (0x565cb000)
  13. [root@bogon native]# ldd libhadoop.so.1.0.0
  14. linux-gate.so.1 => (0xf7715000)
  15. libdl.so.2 => /lib/libdl.so.2 (0xf76df000)
  16. libjvm.so => not found
  17. libc.so.6 => /lib/libc.so.6 (0xf751f000)
  18. /lib/ld-linux.so.2 (0x565a8000)
  19. [root@bogon native]# file libhadoop.so.1.0.0
  20. libhadoop.so.1.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, BuildID[sha1]=f39a66d3529c512f0a20e6b4adc8be6985df267b, not stripped
  21. [root@bogon native]# ls

 

 

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

 

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

 

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

 

 

 

 

 

 

 

 

 

 

 

 

 

捐助开发者 

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

 

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



 
 
 谢谢您的赞助,我会做的更好!

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/你好赵伟/article/detail/387342
推荐阅读
相关标签
  

闽ICP备14008679号