[大数据入门]解决centos6.5中WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platfor

唐睿
2023-12-01

解决centos6.5中WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platfor

[大数据入门]

问题描述:

[root@node1 cloud]# hadoop fsck / -files -blocks
DEPRECATED: Use of this script to execute hdfs command is deprecated.
Instead use the hdfs command for it.

17/12/10 21:33:47 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Connecting to namenode via http://202.96.64.8:50070/fsck?ugi=root&files=1&blocks=1&path=%2F
FSCK started by root (auth:SIMPLE) from /202.96.64.8 for path / at Sun Dec 10 21:33:48 EST 2017
/ <dir>
/usr <dir>
/usr/root <dir>
/usr/root/input <dir>
Status: HEALTHY
 Total size:    0 B
 Total dirs:    4
 Total files:   0
 Total symlinks:        0
 Total blocks (validated):  0
 Minimally replicated blocks:   0
 Over-replicated blocks:    0
 Under-replicated blocks:   0
 Mis-replicated blocks:     0
 Default replication factor:    3
 Average block replication: 0.0
 Corrupt blocks:        0
 Missing replicas:      0
 Number of data-nodes:      3
 Number of racks:       1
FSCK ended at Sun Dec 10 21:33:48 EST 2017 in 4 milliseconds


The filesystem under path '/' is HEALTHY

解决方案步骤:
http://blog.csdn.net/sloyzhang/article/details/44523951
本人测试:

用glibc-2.14.1-6.x86_64.rpm及相关的rpm安装不会出现兼容性的问题, 需要下载的rpm包如下
glibc-2.14.1-6.x86_64.rpm
glibc-common-2.14.1-6.x86_64.rpm
glibc-headers-2.14.1-6.x86_64.rpm 
glibc-devel-2.14.1-6.x86_64.rpm 
nscd-2.14.1-6.x86_64.rpm
下载地址:http://pan.baidu.com/s/1sjLUcFz, 或者去http://rpm.pbone.net/ 搜索以上rpm包名下载
最后安装命令如下:
rpm -Uvh glibc-2.14.1-6.x86_64.rpm glibc-common-2.14.1-6.x86_64.rpm glibc-headers-2.14.1-6.x86_64.rpm glibc-devel-2.14.1-6.x86_64.rpm nscd-2.14.1-6.x86_64.rpm
完成
 类似资料: