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

Source: Internet
Author: User
The Hadoop official web site only provides 32-bit Hadoop packages, I installed a 64-bit system, naturally unable to use, will report errors, resulting in the inability to start Hadoop
libhadoop.so.1.0.0 which might has disabled stack guard.
We can find the libhadoop.so.1.0.0 file under the ${hadoop-home}/lib/native folder, which will appear as follows
yuping@yp-x100e:$ 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, directly on the official website to download the Hadoop src package, unzip, into the directory, directly run (don't forget, your current user to have this folder operation permissions)
MVN Package-pdist,native,docs-dskiptests-dtar
Long commissioning work started, search information, collect these packages 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 including
sudo apt-get install maven
sudo apt-get install protobuf-compiler
sudo apt-get install cmake
sudo apt-get ins Tall Zlib1g.dev
sudo apt-get install g++
sudo apt-get install libglib2.0-dev
sudo apt-get install Libssl-dev
Which Maven is Maven3, I mistakenly think that Maven is 1;ant is the system comes with the 1.9 version of most of the errors on the web 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, view version, Normal, but still reported
An ant buildxception have occured exec returned 1
Carefully read the running log, only to find that my first hadoop-src directory is in Chinese, I am in the process of compiling the fear of Chinese on the compilation has an impact, the entire directory is copied to an English path, before the move to perform the compilation operation, But did not install Zlib1g.dev and Libglib2.0-dev, so even after installing the two dependent packages, or will report an error, the solution is to remove the HADOOP-SRC, re-unzip a copy of the English path, once again to carry out the packaging operation about 40 minutes, done, The generated hadoop-2.4.0-src/hadoop-dist/target/hadoop-2.4.0, replace the previous 32-bit hadoop-2.4.0 with this

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.