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

来源:互联网 发布:帝国cms 建站帮助 编辑:程序博客网 时间:2024/06/06 00:09

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

[大数据入门]

问题描述:

[root@node1 cloud]# hadoop fsck / -files -blocksDEPRECATED: 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 applicableConnecting to namenode via http://202.96.64.8:50070/fsck?ugi=root&files=1&blocks=1&path=%2FFSCK 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:       1FSCK ended at Sun Dec 10 21:33:48 EST 2017 in 4 millisecondsThe 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.rpmglibc-common-2.14.1-6.x86_64.rpmglibc-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完成
阅读全文
0 0