Hadoop 启动提示Unable to load native-hadoop library问题记录
程序员文章站
2022-07-06 09:42:20
...
Unable to load native-hadoop library for your platform… using builtin-java classes where applicable问题记录
执行hadoop checknative -a语句
结果全是false
版本是Hadoop 3.3.0
在网上查找了很多解决办法,一一尝试均不能解决我的问题。
最后在网上看到一个博客这里
就是在/usr/local/hadoop/etc/hadoop/hadoop-env.sh中追加一句
export HADOOP_OPTS="-Djava.library.path=${HADOOP_HOME}/lib/native"
这句原本以为要写在环境变量的文件中,但这里也要写才不会出错。。。
启动Spark时报错参考这个
在/usr/local/spark/conf/spark-env.sh追加
export LD_LIBRARY_PATH=$HADOOP_HOME/lib/native/:$LD_LIBRARY_PATH
上一篇: Ubuntu14.04安装tesseract3.0.5
下一篇: 什么是视频监控平台的订阅和通知
推荐阅读
-
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解决方法