本次實驗的環境:linux 64位+hadoop2.7.2 64位.
HADOOP_HOME=/hadoop/hadoop-2.7
點選(此處)折疊或打開
[root@sht-sgmhadoopnn-01 ~]# getconf LONG_BIT
64
[root@sht-sgmhadoopnn-01 ~]# cd /hadoop/hadoop-2.7.2/lib/native/
[root@sht-sgmhadoopnn-01 native]# ll
total 4924
-rw-r--r-- 1 10011 10011 1382764 Jan 26 08:20 libhadoop.a
-rw-r--r-- 1 10011 10011 1632184 Jan 26 08:20 libhadooppipes.a
lrwxrwxrwx 1 10011 10011 18 Feb 22 00:23 libhadoop.so -> libhadoop.so.1.0.0
-rwxr-xr-x 1 10011 10011 807878 Jan 26 08:20 libhadoop.so.1.0.0
-rw-r--r-- 1 10011 10011 476682 Jan 26 08:20 libhadooputils.a
-rw-r--r-- 1 10011 10011 447412 Jan 26 08:20 libhdfs.a
lrwxrwxrwx 1 10011 10011 16 Feb 22 00:23 libhdfs.so -> libhdfs.so.0.0.0
-rwxr-xr-x 1 10011 10011 282396 Jan 26 08:20 libhdfs.so.0.0.0
[root@sht-sgmhadoopnn-01 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位hadoop部署需在64位作業系統上,同理32位linux上應該部署32位hadoop.
<a href="http://blog.csdn.net/wulantian/article/details/38112193">http://blog.csdn.net/wulantian/article/details/38112193</a>
<a href="http://blog.csdn.net/wulantian/article/details/38111999">http://blog.csdn.net/wulantian/article/details/38111999</a>