hadoop--Unable to load native-hadoop library for your platform解决方法
程序员文章站
2022-03-21 21:37:08
笔者实验环境:centos 7.4.1708,hadoop-2.6.0-cdh5.14.2. 执行hadoop命令时出现以下告警,不能加载相关库: 检查发现本地并没有库: 进入到hadoop目录下可以看到/lib/native为空。 需要下载对应版本的库文件:http://dl.bintray.co ......
笔者实验环境:centos 7.4.1708,hadoop-2.6.0-cdh5.14.2.
执行hadoop命令时出现以下告警,不能加载相关库:
warn util.nativecodeloader: unable to load native-hadoop library for your platform... using builtin-java classes where applicable
检查发现本地并没有库:
$ hadoop checknative -a 19/08/30 13:11:53 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 19/08/30 13:11:53 info util.exitutil: exiting with status 1
进入到hadoop目录下可以看到/lib/native为空。
需要下载对应版本的库文件:
此处笔者选择:。
下载解压至/lib/native目录下:
$ ll total 4356 -rw-r--r-- 1 hadoop hadoop 1119486 dec 2 2014 libhadoop.a -rw-r--r-- 1 hadoop hadoop 1486964 dec 2 2014 libhadooppipes.a lrwxrwxrwx 1 hadoop hadoop 18 dec 2 2014 libhadoop.so -> libhadoop.so.1.0.0 -rwxr-xr-x 1 hadoop hadoop 671189 dec 2 2014 libhadoop.so.1.0.0 -rw-r--r-- 1 hadoop hadoop 581944 dec 2 2014 libhadooputils.a -rw-r--r-- 1 hadoop hadoop 359458 dec 2 2014 libhdfs.a lrwxrwxrwx 1 hadoop hadoop 16 dec 2 2014 libhdfs.so -> libhdfs.so.0.0.0 -rwxr-xr-x 1 hadoop hadoop 228435 dec 2 2014 libhdfs.so.0.0.0
重启dfs,问题解决:(笔者已经配置好hadoop环境变量,直接运行命令)
$ start-dfs.sh $ hdfs dfs -ls / found 2 items drwxr-xr-x - hadoop supergroup 0 2019-08-29 15:08 /test drwx------ - hadoop supergroup 0 2019-08-29 15:08 /tmp
上一篇: PHP内外观模式facade pattern使用详解
下一篇: 车牌识别代码OpenCV
推荐阅读
-
Hadoop启动警告:WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... usi
-
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your......
-
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-
-
【Spark】NativeCodeLoader:62Unable to load native-hadoop library for your platform... using builtin-ja
-
Unable to load native-hadoop library for your platform解决
-
解决 Unable to load native-hadoop library for your platform
-
Hadoop _ 疑难杂症 解决1 - WARN util.NativeCodeLoader: Unable to load native-hadoop library for your plat
-
MAC解决Unable to load native-hadoop library for your platform
-
问题解决:Spark Unable to load native-hadoop library for your platform
-
Hadoop HDFS 出现 WARN Unable to load native-hadoop library for your platform解决方法