部署Hadoop2.x,出現Warn:Unable to load native-hadoop library
在安裝部署的時候,遇到了問題 Unable to load native-hadoop library
原因1:64位linux使用了32位的hadoop native本地庫
[root@hadoop-001hadoop-2.4.1]# hadoop fs -ls /
14/12/09 19:43:06 WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
[root@lsn-linux hadoop-2.4.1]#
原因是hadoop-2.4.1.tar.gz安裝包是在32位機器上編譯的,64位的機器載入本地庫.so檔案時出錯,不影響使用。
參照:” 檢查Hadoop是32位還是64位”
解決:
1.重新編譯原始碼後將新的lib/native替換到叢集中原來的lib/native
這裡替換完畢,可是還是出現,在增加下面配置。
2.修改hadoop-env.sh ,增加
export HADOOP_OPTS="$ HADOOP_OPTS -Djava.library.path=$HADOOP_HOME/lib:$HADOOP_HOME/lib/native"
3.hadoop-env.sh 同步叢集其他節點,重啟叢集生效
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30089851/viewspace-2121009/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- Unable to load native-hadoop library for your platform解決HadoopPlatform
- Hive錯誤:Unable to load native-hadoop library for your platformHiveHadoopPlatform
- Hadoop問題解決:Unable to load native-hadoop library for your platform...HadoopPlatform
- Centos 安裝JDK 出現Unable to load native library: libnsl.so.1CentOSJDK
- ORA-600 [unable to load XDB library] in AIXAI
- ORA-00600: internal error code, arguments: [unable to load XDB library] 排查過程Error
- Unable to load SELinux PolicyLinux
- 在linux as4上做asm時出現"Unable to load module oracleasm"問題的處理LinuxASMOracle
- 高手sos!!! Unable to load document from file...
- tomcat部署出現異常如下[main] WARN : net.sf.ehcache.config.ConfiguratorTomcatAI
- sudo 出現unable to resolve host 解決方法
- 啟動uwsgi報錯ImportError: No module named, unable to load appImportErrorAPP
- 部署在IIS中服務出現異常 Failed to load resource: the server responded with a status of 503 (Service Unavailable)AIServer
- 【Azure Redis】部署在AKS中的應用連線Redis時候出現Unable to connect to Redis serverRedisServer
- 【ASK_ORACLE】Library cache pin 與 library load lock的關係和區別Oracle
- 啟動Eclipse彈出:Failed to load JavaHL Library 錯誤框的解決辦法EclipseAIJava
- sudo時出現unable to resolve host 的解決方法
- 執行 xhost + 出現 unable to open display 解決辦法
- pycharm啟動時候出現 fail to load jvm dllPyCharmAIJVM
- Gentoo startx出現Failed to load module問題解決AI
- [Util] can not load library from so file +++ errCode:10004
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- 密碼延遲驗出現大量library cache lock密碼
- 【ASM_ORACLE】Library Cache最佳化篇(二)Library cache load lock的概念和解決辦法ASMOracle
- 啟動 Eclipse 彈出“Failed to load the JNI shared library jvm.dll”錯誤的解決方法!EclipseAIJVM
- jQuery load()函式載入頁面出現亂碼jQuery函式
- Oracle使用sqlldr load匯入txt出現中文亂碼OracleSQL
- OPatch not load inventory for given Oracle Ho-Unable create patchobj_1119465.1OracleOBJ
- ubuntu安裝軟體出現Unable to locate package錯誤解決UbuntuPackage
- 虛擬機器出現unable to collect ipv4 route table告警虛擬機
- Can't debug c++ project because unable to static library start program *.libC++Project
- 【轉】啟動 Eclipse 彈出“Failed to load the JNI shared library jvm.dll”錯誤的解決方法!...EclipseAIJVM
- 安裝ROS出現 Unable to Correct Problems ‘You have Held Broken Packages’ 錯誤ROSPackage
- 11.2資料庫登入出現library cache lock等待(二)資料庫
- 11.2資料庫登入出現library cache lock等待(一)資料庫
- Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load classbootException
- Unable to load bean: type:org.apache.struts2.views.gxp.inject.InjectedObjectContainer class:org.apacBeanApacheViewObjectAI
- 深入淺出 testing-library