Questions Guide:
1. Where can I identify whether Hadoop is 32-bit or 64-bit?
Where is the 2.hadoop local library?
Source: About Cloud
This article link: http://www.aboutyun.com/thread-12796-1-1.html
When Hadoop is installed, we need to know if the Hadoop version is 32-bit or 64-bit.
The Hadoop website originally offered 32-bit, because most of us are 64-bit, so we have to compile. Since then, the official website has provided 64 people from the hadoop2.5 version.
To prevent us from using the wrong, let's actually operate and observe.
We are here to download the hadoop2.4.1 installation package from the official website.
If Hadoop is 32-bit or 64-bit, we can view the local library. Enter $hadoop_home/lib/native, use the file command
#####################################
After decompression, we enter
- Hadoop-2.4.1/lib/native
Use the file command:
- File libhadoop.so.1.0.0
libhadoop.so.1.0.0:elf 32-bit LSB shared object, Intel 80386, version 1 (SYSV), dynamically linked, Buil Did[sha1]=0xd3669af32f519c52b4e6200a69bec8ad7b26df85, not stripped
###################################################
Then we look at the hadoop2.5 official website to download the installation package, this time the official website download the installation package, it is already 64 bit
Then we look at the current version hadoop2.7
- /hadoop-2.7.0/lib/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, buildid[sha1]=0xc44a02ed2f 540f8c91dc6da31ec5758a2474641c, not stripped
As for the back is not 64, you can use the above method to identify
Beginner's Guide: teach you how to see if Hadoop is 32-bit or 64-bit