2013年11月8日 星期五

[研究] hadoop-2.2.0.tar.gz 有哪些檔案是 32-bit 專用的

[研究] hadoop-2.2.0.tar.gz 有哪些檔案是 32-bit 專用的

編譯完成的 Hadoop 2.2.0 版,官方只提供 hadoop-2.2.0.tar.gz,根據下面這篇,至少有2個 Library 是 32-bit 的,是否還有其他的呢?

[研究] Hadoop 2.2.0 編譯 (CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/11/hadoop-220-centos-64-x64.html

開始測試

[root@localhost ~]# wget http://ftp.mirror.tw/pub/apache/hadoop/common/hadoop-2.2.0/hadoop-2.2.0.tar.gz
[root@localhost ~]# tar zxvf hadoop-2.2.0.tar.gz -C /usr/local
[root@localhost ~]# cd  /usr/local/hadoop-2.2.0

測試一下準備要執行命令列表

[root@localhost hadoop-2.2.0]# find  | awk '{print "file " i$0}' i=`pwd`'/'    | head -n 10
file /usr/local/hadoop-2.2.0/.
file /usr/local/hadoop-2.2.0/./README.txt
file /usr/local/hadoop-2.2.0/./share
file /usr/local/hadoop-2.2.0/./share/doc
file /usr/local/hadoop-2.2.0/./share/doc/hadoop
file /usr/local/hadoop-2.2.0/./share/doc/hadoop/index.html
file /usr/local/hadoop-2.2.0/./share/doc/hadoop/dependency-analysis.html
file /usr/local/hadoop-2.2.0/./share/doc/hadoop/hadoop-rumen
file /usr/local/hadoop-2.2.0/./share/doc/hadoop/hadoop-rumen/dependency-analysis.html
file /usr/local/hadoop-2.2.0/./share/doc/hadoop/hadoop-rumen/css

把要執行命令列表輸出到 1.sh 檔案

[root@localhost hadoop-2.2.0]# find  | awk '{print "file " i$0}' i=`pwd`'/'   >  1.sh

設定為可執行

[root@localhost hadoop-2.2.0]# chmod +x   >  1.sh

執行,抓出包含字串 32-bit 的

[root@localhost hadoop-2.2.0]# ./1.sh | grep 32-bit
/usr/local/hadoop-2.2.0/./bin/container-executor: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
/usr/local/hadoop-2.2.0/./bin/test-container-executor: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, not stripped
/usr/local/hadoop-2.2.0/./lib/native/libhdfs.so.0.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped
/usr/local/hadoop-2.2.0/./lib/native/libhadoop.so.1.0.0: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, not stripped
[root@localhost hadoop-2.2.0]#

後兩個是 Library,不能直接執行;前兩個是可執行程式,執行看看

[root@localhost hadoop-2.2.0]# /usr/local/hadoop-2.2.0/./bin/container-executor
-bash: /usr/local/hadoop-2.2.0/./bin/container-executor: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

[root@localhost hadoop-2.2.0]# /usr/local/hadoop-2.2.0/./bin/test-container-executor
-bash: /usr/local/hadoop-2.2.0/./bin/test-container-executor: /lib/ld-linux.so.2: bad ELF interpreter: No such file or directory

確實不能執行,所以 hadoop-2.2.0.tar.gz 有4個檔案是 32-bit 專用的

./bin/container-executor
./bin/test-container-executor
./lib/native/libhdfs.so.0.0.0
./lib/native/libhadoop.so.1.0.0

(完)


相關

[研究] Hadoop 2.2.0 編譯 (CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/11/hadoop-220-centos-64-x64.html

[研究] Hadoop 2.2.0 Single Cluster 安裝 (二)(CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/11/hadoop-220-single-cluster-centos-64-x64_7.html

[研究] Hadoop 2.2.0 Single Cluster 安裝 (一)(CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/11/hadoop-220-single-cluster-centos-64-x64.html

[研究] Hadoop 1.2.1 (rpm)安裝 (CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/10/hadoop-121-rpm-centos-64-x64.html

[研究] Hadoop 1.2.1 (bin)安裝 (CentOS 6.4 x64)
http://shaurong.blogspot.tw/2013/07/hadoop-112-centos-64-x64.html

[研究] Hadoop 1.2.1 安裝 (CentOS 6.4 x64)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=80035

[研究] 雲端軟體 Hadoop 1.0.0 安裝 (CentOS 6.2 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=21166

[研究] 雲端軟體 Hadoop 0.20.2 安裝 (CentOS 5.5 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=18513

[研究] 雲端軟體 Hadoop 0.20.2 安裝 (CentOS 5.4 x86)
http://forum.icst.org.tw/phpbb/viewtopic.php?t=17974

沒有留言:

張貼留言