码迷,mamicode.com
首页 > 其他好文 > 详细

hadoop-2.5.0-cdh5.3.6 native包 替换

时间:2019-10-08 19:16:19      阅读:100      评论:0      收藏:0      [点我收藏+]

标签:cdh5   ica   lin   init   loader   成功   解压   big   cdh   

未替换前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包 替换

标签:cdh5   ica   lin   init   loader   成功   解压   big   cdh   

原文地址:https://www.cnblogs.com/yin1361866686/p/8306669.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!