Hadoop Development <2> under UBUNTU14 Compiling 64-bit Hadoop2.4

Source: Internet
Author: User

    • The Hadoop official site only provides a 32-bit Hadoop package. I'm loading a 64-bit system. Natural inability to use, reporting errors, resulting in the inability to start Hadoop
libhadoop.so.1.0.0 which might has disabled stack guard.
    • We are able to find the libhadoop.so.1.0.0 file in the ${hadoop-home}/lib/native directory, which may appear as follows
[Email protected]:$ file/usr/mytools/hadoop-2.4.0/lib/native/libhadoop.so.1.0.0/usr/mytools/hadoop-2.4.0/lib/ Native/libhadoop.so.1.0.0:elf 32-bit LSB Shared Object, Intel 80386,version 1 (SYSV), dynamically linked, not stripped
    • I did not use SVN to download the SRC package directly on the website of Hadoop. After decompression. Enter the folder. Execute directly (don't forget that your current user has permission to operate this folder)
MVN Package-pdist,native,docs-dskiptests-dtar
    • Long commissioning work started, search information, collect these bags is really the rhythm of the crash
    • 3 o'clock in the afternoon a kind of get 1 o'clock in the morning, after a few hours of effort, should install the dependent software that contains
sudo apt-get install mavensudo apt-get install protobuf-compilersudo apt-get install cmakesudo apt-get Install Zlib1g.devs Udo Apt-get Install G++sudo apt-get install libglib2.0-devsudo apt-get Install Libssl-dev
    • MAVEN is Maven3, and I mistakenly think Maven is 1. Ant is the system comes with the 1.9 version number
    • Most of the errors on the Internet can be found to solve, in addition to Libglib2.0-dev and Zlib1g.dev these two dependent packages, the search time is longer
    • The whole process of the most collapse is CMake, after the installation, check the version number, normal, but still reported
An ant buildxception have occured exec returned 1
    • Careful look at the running log, only to find that my most beginning of the Hadoop-src folder is in Chinese, I am in the process of compiling the fear of Chinese on the compilation has an impact, the entire folder is copied to an English path, before moving to run the compilation operation, But Zlib1g.dev and Libglib2.0-dev were not installed. So even after the installation of these two dependent packages, or will report an error, the solution is to delete this hadoop-src, once again unzip a copy of the English path, run the packaging operation again
    • About 40 minutes, it's done. The generated hadoop-2.4.0-src/hadoop-dist/target/hadoop-2.4.0, replacing the previous 32-bit hadoop-2.4.0 with this can be

UBUNTU14 Hadoop Development <2> compilation 64-bit Hadoop2.4

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.