Unable to load native-hadoop library for your platform解決
啟動spark後,執行bin/spark-shell會出現一個警告
WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
>>提君部落格原創 http://www.cnblogs.com/tijun/ <<
雖然不影響執行,但是看著不舒服。下面我整理的解決方法。
方法有兩種,親測可以解決這個問題。
第一種,在linux環境變數裡設定linux共享庫
vi /etc/profile export LD_LIBRARY_PATH=$HADOOP_HOME/lib/native/:$LD_LIBRARY_PATH
source一下,問提解決了,就這麼的簡單。
>>提君部落格原創 http://www.cnblogs.com/tijun/ <<
第二種方法,需要設定環境變數和conf/spark-env.sh
環境變數
vi /etc/profile export JAVA_LIBRARY_PATH=$HADOOP_HOME/lib/native/
conf/spark-env.sh
vi conf/spark-env.sh export LD_LIBRARY_PATH=$JAVA_LIBRARY_PATH
相關文章
- Hadoop問題解決:Unable to load native-hadoop library for your platform...HadoopPlatform
- Hive錯誤:Unable to load native-hadoop library for your platformHiveHadoopPlatform
- 部署Hadoop2.x,出現Warn:Unable to load native-hadoop libraryHadoop
- ORA-600 [unable to load XDB library] in AIXAI
- yii2 Unable to verify your data submission錯誤解決
- Bugs Fixed for Your PlatformPlatform
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- ORA-00600: internal error code, arguments: [unable to load XDB library] 排查過程Error
- Centos 安裝JDK 出現Unable to load native library: libnsl.so.1CentOSJDK
- Unable to load SELinux PolicyLinux
- 解決Qt編譯動態連結庫could not find or load the Qt platform plugin "windows" in.問題QT編譯PlatformPluginWindows
- 高手sos!!! Unable to load document from file...
- 解決Library Cache latchs
- 啟動Eclipse彈出:Failed to load JavaHL Library 錯誤框的解決辦法EclipseAIJava
- linux解決xhost: unable to open displayLinux
- linux解決xhost unable to open display‘’Linux
- 【ASM_ORACLE】Library Cache最佳化篇(二)Library cache load lock的概念和解決辦法ASMOracle
- 解決:Failed to load ApplicationContextAIAPPContext
- cordova 解決can’t not find moudle " plugman platform ios"PlatformiOS
- 解決library cache pin等待事件事件
- 啟動 Eclipse 彈出“Failed to load the JNI shared library jvm.dll”錯誤的解決方法!EclipseAIJVM
- 完美解決xhost +報錯: unable to open display
- 解決: selenium webdriver unable to find Mozilla geckodriverWeb
- Unable to locate package錯誤解決辦法Package
- 轉貼:xhost unable to open display解決方法
- Unable to generate a temporary class (result=1)解決方法
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- Application failed to start because it could not find or load the QT platform plugin “windows”APPAIQTPlatformPluginWindows
- 定位Library Cache pin,Library Cache lock等待的解決方法
- 啟動uwsgi報錯ImportError: No module named, unable to load appImportErrorAPP
- 解決:Could not load dynamic library ‘cudart64_101.dll‘; dlerror: cudart64_101.dll not foundDartError
- 【轉】啟動 Eclipse 彈出“Failed to load the JNI shared library jvm.dll”錯誤的解決方法!...EclipseAIJVM
- zt_如何平面解決library cache lock和library cache pin
- maven eclipse miss required library解決MavenEclipseUI
- 分析解決因”library cache pin”等待
- git pull報“unable to update local ref”解決方案Git
- 解決Ubuntu報錯 E: Unable to locate package yumUbuntuPackage
- sudo 出現unable to resolve host 解決方法