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
- yii2 Unable to verify your data submission錯誤解決
- Centos 安裝JDK 出現Unable to load native library: libnsl.so.1CentOSJDK
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- 解決:Could not load dynamic library ‘cudart64_101.dll‘; dlerror: cudart64_101.dll not foundDartError
- 解決:Failed to load ApplicationContextAIAPPContext
- 解決Qt編譯動態連結庫could not find or load the Qt platform plugin "windows" in.問題QT編譯PlatformPluginWindows
- 【ASM_ORACLE】Library Cache最佳化篇(二)Library cache load lock的概念和解決辦法ASMOracle
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- 【ASK_ORACLE】Library cache pin 與 library load lock的關係和區別Oracle
- 啟動uwsgi報錯ImportError: No module named, unable to load appImportErrorAPP
- 完美解決xhost +報錯: unable to open display
- sudo 出現unable to resolve host 解決方法
- Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load classbootException
- Library Cache 診斷:Lock, Pin 以及 Load Lock (文件 ID 1548524.1)
- git pull報“unable to update local ref”解決方案Git
- 解決Ubuntu報錯 E: Unable to locate package yumUbuntuPackage
- Can't debug c++ project because unable to static library start program *.libC++Project
- 萬能方法解決——You have an error in your SQL syntaxErrorSQL
- sudo時出現unable to resolve host 的解決方法
- 解決滾動警告:Unable to preventDefault inside passive event listenerIDE
- 排查qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "" even though it was found.QTPluginPlatform
- 解決問題-There appears to be trouble with your network connection. Retrying...APP
- idea系列:解決啟動 failed to load JVM DLL 提示IdeaAIJVM
- IDEA提示failed to load JVM DLL的解決辦法IdeaAIJVM
- Library source does not match the bytecode for class 最佳解決方案
- Unable to save settings: Failed to save settings. Please restart PyCharm解決AIRESTPyCharm
- VS中呼叫QT出現This application failed to start because it could not find or load the Qt platform pluginQTAPPAIPlatformPlugin
- linux load解釋Linux
- git-----You have not concluded your merge (MERGE_HEAD exists)解決Git
- tensorflow2.x 報錯 Could not load dynamic library 'cudart64_101.dll'Dart
- tensorflow2.x 報錯 Could not load dynamic library 'cudnn64_7.dll'DNN
- 解決Spring Boot測試方法Failed to load ApplicationContext問題Spring BootAIAPPContext
- valet install 報 Unable to determine linked PHP. 的解決辦法PHP
- 【ubuntu】解決Unable to determine the device handle for GPU 0000:02:00.0: Unknown ErrorUbuntudevGPUError
- 解決jpa查詢時,Unable to locate Attribute with the the given name錯誤
- 解決問題:啟動不了VM,提示 Your VM has become “inaccessible…
- 切換分支 error: Your local changes tby checkout: 錯誤解決方法Error