Beginner's Guide: teach you how to see if Hadoop is 32-bit or 64-bit

Source: Internet
Author: User

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

    1. Hadoop-2.4.1/lib/native

Use the file command:

    1. 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

    1. /hadoop-2.7.0/lib/native$ file libhadoop.so.1.0.0
    2. 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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.