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

[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@db96 hadoop]# file /usr/local/hadoop/lib/native/libhadoop.so.1.0.0 
/usr/local/hadoop/lib/native/libhadoop.so.1.0.0: ELF 32-bit LSB shared object, 
 Intel 80386, version 1 (SYSV), dynamically linked, not stripped
 是32位的hadoop,安装在了64位的linux系统上。lib包编译环境不一样,所以不能使用。
 悲剧了,装好的集群没法用。
 
 解决办法:重新编译hadoop.//就是重新编译hadoop软件。 (本例文是在从库db99上编译。你也可以在master db96上编译

        //只要机器的环境一直。)


参考手动编译步骤:64位的linux装的hadoop是32位的,需要手工编译

     http://blog.csdn.net/wulantian/article/details/38111999

你可能感兴趣的:(WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-)