未替换前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检验是否成功.
[[email protected]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
原文地址:https://www.cnblogs.com/yin1361866686/p/8306669.html
时间: 2024-10-16 14:19:02