`
knight_black_bob
  • 浏览: 857785 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

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/



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

0
0
分享到:
评论

相关推荐

    Hadoop 启动WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using

    搭建hadoop 环境时遇到启动异常告警问题 “WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable” 上来不多说,百度收集些相关...

    hadoop2.8.1 native for macOS10

    WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Found 2 items 解决方法是下载hadoop源代码重新编译, 但中间需要下载安装...

    hadoop-2.6.0编译好的64bit的native库

    14/01/27 10:52:34 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Starting namenodes on [Java HotSpot(TM) 64-Bit ...

    hadoop-core-1.1.1.jar

    原错误提示为:12/04/24 15:32:44 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 12/04/24 15:32:44 ERROR security....

    hadoop-2.4.1 64位 libhadoop.so.1.0.0

    WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable Starting namenodes on [Java HotSpot(TM) Client VM warning: You have ...

    hadoop-native-64-2.6.0.zip

    Hadoop使用过程报错:WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform...解决 下载过后把tar包解压在hdoop的lib/native下即可

    jdk7+ubuntu14.04_32位下编译的hadoop2.6.0的libhadoop.so.1.0.0

    jdk7+ubuntu14.04_32位下编译的hadoop2.6.0的libhadoop....14/10/10 08:35:56 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

    hadoop2.2.0 64位 native库centos64

    WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable 在网上查了一下发现Apache官网提供的是32位编译的,在64...

    haddop-2.6.4 native 64位

    为了解决执行hadoop 命令时总有警告: WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

    glibc-2.14 Hadoop专属glib

    升级glib解决Hadoop WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... 和 SequenceFile doesn't work with GzipCodec without native-hadoop code 问题, 具体请参见博文:...

    hadoop2.8.1 native for mac

    macOS下使用hadoop2.8.1时, 执行hadoop fs 命令(如:hadoop fs -ls /tmp/input)会提示: WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platfo

    hadoop-3.0.0 win工具包 hadoop.dll winutils.exe

    util.Shell (Shell.java:(694)) - Did not find winutils.exe: {} java.io.FileNotFoundException: Could not locate Hadoop executable: E:\hadoop-3.0.2\bin\winutils.exe -see ...

    hadoop源码编译

    在某些情况下,当用户直接从官网下载Hadoop安装包并尝试启动Hadoop集群时,可能会遇到如下的警告信息:“WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-...

    hadoop-native-64-2.4.0.tar

    hadoop-native-64-2.4.0.tar 解决运行hadoop 警告:WARN util.NativeCodeLoader: Unable to load native-hadoop

    64位hadoop-2.6.0 lib/native.tar.gz

    自己在网上下载了一个hadoop-2.6.0-cdh5.15.1版本的hadoop,启动hdfs时报错:WARN org.apache.hadoop.util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java ...

    hadoop-2.6.0在centos6.7下的native包

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

    hadoop lib/native

    在安装hadoop时如果遇到WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform这个错误,请下载该文件放到hadoop目录下,Mac中放到libexec目录下。

    hadoop 2.7.2 64位 native包

    WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable 官网上源码hadoop2.7.2,64位机上编译的,CentOS6.6 64位亲测。

    native-2.5.0.tar.gz下载

    hadoop报 :WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable相关错误时,将压缩包中的文件替换hadoop-2.5.0/lib/native中...

Global site tag (gtag.js) - Google Analytics