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