hadoop-2.5.0-cdh5.3.6 native包 替换

Posted yin1361866686

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了hadoop-2.5.0-cdh5.3.6 native包 替换相关的知识,希望对你有一定的参考价值。

未替换前hadoop上操作会出现如下警告:

This script is Deprecated. Instead use stop-dfs.sh and stop-yarn.sh
18/01/02 03:01:03 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable

 

解决:

  1、下载编译好的native包,解压。

    native包:https://files.cnblogs.com/files/yin1361866686/native-2.5.0.tar.gz

  2、替换掉/hadoop/lin/native.

  3、通过bin/hadoop checknative检验是否成功.

[walloce@bigdata-study-104 hadoop-2.5.0-cdh5.3.6]$ bin/hadoop checknative
18/01/02 03:32:58 WARN bzip2.Bzip2Factory: Failed to load/initialize native-bzip2 library system-native, will use pure-Java version
18/01/02 03:32:58 INFO zlib.ZlibFactory: Successfully loaded & initialized native-zlib library
Native library checking:
hadoop:  true /opt/modules/cdh/hadoop-2.5.0-cdh5.3.6/lib/native/libhadoop.so
zlib:    true /lib64/libz.so.1
snappy:  false 
lz4:     true revision:99
bzip2:   false 
openssl: false org.apache.hadoop.util.NativeCodeLoader.buildSupportsOpenssl()Z

 

以上是关于hadoop-2.5.0-cdh5.3.6 native包 替换的主要内容,如果未能解决你的问题,请参考以下文章

spark streaming集成flume

Hadoop-CDH源码编译

HBase 通过myeclipce脚本来获取固定columns(获取列簇中的列及对应的value值)

hadoop2.5.0 HA高可用配置

大型企业网络构建之动态NAT静态NAT和华为NAT

NAT地址转换详解(静态NAT,端口映射,动态NAT,PAT)