在执行hadoop命令的时候出现如下错误,不能加载Hadoop库
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
检查发现本地并没有库
[hadoop001@192 ~]$ hadoop checknative -a
18/12/30 03:46:50 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
Native library checking:
hadoop: false
zlib: false
snappy: false
lz4: false
bzip2: false
openssl: false
18/12/30 03:46:50 INFO util.ExitUtil: Exiting with status 1
进入Hadoop下的\lib\native发现是空文件夹
http://dl.bintray.com/sequenceiq/sequenceiq-bin/
下载对应版本的native库
解压至\lib\native下
重新启动dfs,解决了