Hadoop問題解決:Unable to load native-hadoop library for your platform...
轉載:https://www.cnblogs.com/fengguozhong/p/11724685.html
在Hadoop配置好環境問題後,啟動Hadoop:start-dfs.sh發出警告:
Unable to load native-hadoop library for your platform... using builtin-java classes where applicable
在查閱了大量的資料後,有很多不同的說法,再此總結:
-
linux與Hadoop中lib/native/目錄下libhadoop.so.1.0.0的版本問題
[root@Master sbin]# uname -r
2.6.32-642.el6.x86_64
[root@master native]# file libhadoop.so.1.0.0
libhadoop.so.1.0.0: ELF 64-bit LSB shared object, x86-64, version 1 (SYSV), dynamically linked, not stripped
都是64位,沒有問題
-
依賴庫問題
[root@master native]# ldd libhadoop.so.1.0.0
./libhadoop.so.1.0.0: /lib64/libc.so.6: version `GLIBC_2.14' not found (required by ./libhadoop.so.1.0.0)
linux-vdso.so.1 => (0x00007fff31efd000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f654dd25000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f654db07000)
libc.so.6 => /lib64/libc.so.6 (0x00007f654d775000)
/lib64/ld-linux-x86-64.so.2 (0x00007f654e155000)
此處提示出:GLIBC_2.14版本未找到,確認一下版本
[root@master sbin]# strings /lib64/libc.so.6|grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_PRIVATE
Hadoop預設支援到GLIBC_2.12,未包括GLIBC_2.14,所以我們可以從網上找到對應的版本下載到linux系統/opt目錄下
下載GLIBC:http://ftp.gnu.org/pub/gnu/glibc/
開始進行配置:
[root@master opt]# tar -zxvf glibc-2.14.tar.gz
[root@master opt]# cd glibc-2.14
[root@master glibc-2.14]#
[root@master glibc-2.14]# mkdir build
[root@master glibc-2.14]# cd build/
[root@master build]#
[root@master build]#../configure --prefix=/usr --disable-profile --enable-add-ons --with-headers=/usr/include --with-binutils=/usr/bin
[root@master build]#make && make install
在安裝完成後檢查一下版本:
[root@master build]# strings /lib64/libc.so.6|grep GLIBC
GLIBC_2.2.5
GLIBC_2.2.6
GLIBC_2.3
GLIBC_2.3.2
GLIBC_2.3.3
GLIBC_2.3.4
GLIBC_2.4
GLIBC_2.5
GLIBC_2.6
GLIBC_2.7
GLIBC_2.8
GLIBC_2.9
GLIBC_2.10
GLIBC_2.11
GLIBC_2.12
GLIBC_2.13
GLIBC_2.14
GLIBC_PRIVATE
然後啟動Hadoop成功。
相關文章
- Unable to load native-hadoop library for your platform解決HadoopPlatform
- Latex編譯錯誤:Unable to load picture or PDF file 問題解決編譯
- yii2 Unable to verify your data submission錯誤解決
- Centos 安裝JDK 出現Unable to load native library: libnsl.so.1CentOSJDK
- Hadoop org.apache.hadoop.util.DiskChecker$DiskErrorException問題等價解決linux磁碟不足解決問題排查HadoopApacheErrorExceptionLinux
- 解決問題-There appears to be trouble with your network connection. Retrying...APP
- 解決Spring Boot測試方法Failed to load ApplicationContext問題Spring BootAIAPPContext
- 解決問題:啟動不了VM,提示 Your VM has become “inaccessible…
- hadoop訪問不到8088解決方案Hadoop
- Load balancer does not contain an instance for the service service-B [503] during [POST] 問題解決AI
- 解決:Could not load dynamic library ‘cudart64_101.dll‘; dlerror: cudart64_101.dll not foundDartError
- Android學習開發(問題解決)——android Unable to inflate view tag without class attributeAndroidView
- 解決:Failed to load ApplicationContextAIAPPContext
- Android gradle問題解決: This app has been built with an incorrect configuration. Please configure your b...AndroidGradleAPPUI
- 【ASM_ORACLE】Library Cache最佳化篇(二)Library cache load lock的概念和解決辦法ASMOracle
- 解決idea匯入maven專案報Unable to import maven project: See logs for details問題IdeaMavenImportProjectAI
- => ERROR [sshd internal] load metadata for docker.io/vulhub/openssh:7.7 問題解決,親測有效!ErrorDocker
- Could not load dynamic library ‘cublas64_10.dll‘; dlerror: cublas64_10.dll not found或者缺少DLL問題Error
- 虛擬機器執行Hadoop | 各種問題解決的心路歷程虛擬機Hadoop
- 【ASK_ORACLE】Library cache pin 與 library load lock的關係和區別Oracle
- 解決Qt編譯動態連結庫could not find or load the Qt platform plugin "windows" in.問題QT編譯PlatformPluginWindows
- 解決問題:OSError: Unable to open file (truncated file: eof = 22118400, sblock->base_addr = 0, stored_eofErrorBloC
- 啟動uwsgi報錯ImportError: No module named, unable to load appImportErrorAPP
- Angular Component 延遲載入 Lazy Load 的一個依賴注入的問題以及解決方案Angular依賴注入
- 提問題比解決問題更重要
- 完美解決xhost +報錯: unable to open display
- sudo 出現unable to resolve host 解決方法
- 解決跨域問題跨域
- SERVICE問題解決方法
- 解決 Unexpectedlexicaldeclarationincaseblock的問題BloC
- 解決mapper重名問題APP
- qeephp 解決跨越問題PHP
- 解決高度塌陷問題
- Caused by: org.hibernate.boot.registry.classloading.spi.ClassLoadingException: Unable to load classbootException
- 一次library cache lock 問題分析
- 解決Mybatis連線Sql server 出現 Cannot load JDBC driver class 'com.mysql.jdbc.Driver '的問題MyBatisServerJDBCMySql
- Hugging Face 無法連線問題 OSError: We couldn‘t connect to ‘https://huggingface.co‘ to load this file 解決方案Hugging FaceErrorHTTP
- Library Cache 診斷:Lock, Pin 以及 Load Lock (文件 ID 1548524.1)