一、Setting up a Single Node Cluster:
http://hadoop.apache.org/docs/r2.6.5/hadoop-project-dist/hadoop-common/SingleCluster.html
1. Purpose: How to configure a single-node cluster to master the use of MR and HDFS.
2. Dependent software:
JDK
SSH
3. Preparation before starting:
Download the binary package, unzip it into the main directory
Only need to modify two items in etc/hadoop/hadoop-env.sh configuration :
# set to the root of your Java installation
export JAVA_HOME=/usr/java/latest
# Assuming your installation directory is /usr/local/hadoop
# (The current storage location of hadoop is very important. If the settings are wrong under your own ubuntu, executing the hadoop command will report that the relevant class cannot be found)
export HADOOP_PREFIX =/usr/local/hadoop
Execute: $ bin/hadoop, show related main usage methods
4. Three ways to start the cluster:
Local (Standalone) Mode
Pseudo-Distributed Mode
Fully-Distributed Mode