1. Create a hadoop user group and user in Ubuntu
2. Install JDK In ubuntu (you can download the linux package from the official website and decompress it for installation)
Hadoop download: http://www.apache.org/dyn/closer.cgi/hadoop/common/
Because 64-bit Ubuntu needs to compile the source file: Download hadoop-2.5.0-src.tar.gz
(1) installation required during compilationProtobuf-2.5.decompress protobuf-2.5.0.tar.gz
, Go to the protobuf-2.5.0 directory and execute the following command
./Configure -- prefix =/usr
Sudo make
Sudo make check
Sudo make install
Verification: protoc -- version
(2) install Maven.
(3) Compile hadoop
Decompress hadoop-2.5.0-src.tar.gz, enter the hadoop-2.5.0-src, and execute the following command
MVN package-pdist, native-dskiptests-dtar
Reference: http://www.ercoppa.org/Linux-Compile-Hadoop-220-fix-Unable-to-load-native-hadoop-library.htm
Possible problem: http://www.cnblogs.com/shenh062326/p/3562491.html
The compiled files are in hadoop-Dist/target.
4. installation and configuration
Reference: http://www.cnblogs.com/end/archive/2012/08/13/2636645.html
Http://hadoop.apache.org/docs/stable/hadoop-project-dist/hadoop-common/SingleCluster.html
Https://www.digitalocean.com/community/tutorials/how-to-install-hadoop-on-ubuntu-13-10
Run after installation: jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.5.0.jar grep input output 'dfs [A-Z.] +'
View on the page:
Http: // localhost: 50070/dfshealth.html # tab-Overview
Http: // localhost: 8088/Cluster