The hadoop1.2.1 was preinstalled in a report to install the instructions in Java. I loaded a lot of versions of Java and many of the version numbers Hadoop, and then found Oracle-java7 and hadoop1.2.1 able to match.
One, install detailed procedures such as the following:
1. Installing Java:sudo apt-get Install Oracle-java7-installer
2. Installing Hadoop1.2.1:http://hadoop.apache.org/docs/r1.2.1/single_node_setup.html#download
Two. Test for successful installation (pseudo-distributed mode):
Format a new Distributed-filesystem:
$ bin/hadoop Namenode-format
Start the Hadoop daemons:
$ bin/start-all.sh
The Hadoop daemon log output is written to the ${hadoop_log_dir} directory (defaults to ${hadoop_home}/logs).
Browse the Web interface for the NameNode and the Jobtracker; By default they is available at:
namenode-http://localhost:50070/
jobtracker-http://localhost:50030/
Copy the input files into the distributed filesystem:
$ bin/hadoop fs-put conf input
Run Some of the examples provided:
$ bin/hadoop jar hadoop-examples-*.jar grep input Output ' dfs[a-z. +
Examine the output files:
Copy the output files from the distributed filesystem to the local filesytem and examine them:
$ bin/hadoop fs-get Output output
$ cat output/*
When you ' re done, stop the daemons with:
$ bin/stop-all.sh
Three. Web UI
1. namenode:http://localhost:50070/
2. jobtracker:http://localhost:50030/
Copyright notice: This article blog original articles, blogs, without consent, may not be reproduced.
Decentralized-ubuntu12.04 installation hadoop1.2.1