JDK, SSH, core-site.xml, hdfs-site.xml, mapred-site.xml, masters, slaves, hosts
JDK
hadoop-env.sh:
export JAVA_HOME=/home/hadoop/jdk1.6.0_26
SSH
ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa
cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
chmod 600 ~/.ssh/authorized_keys
NameNode
hadoop-env.sh:
export HADOOP_NAMENODE_OPTS="-XX:+UseParallelGC ${HADOOP_NAMENODE_OPTS}"
conf/core-site.xml:
hdfs://master1:9000
conf/hdfs-site.xml:
dfs.replication: 1
conf/mapred-site.xml:
mapred.job.tracker: master1:9001
conf/masters
maseter1
conf/slaves
slave1
slave2
/etc/hosts
10.0.0.1 maseter1
10.0.0.2 maseter2
10.0.1.1 slave1
10.0.1.2 slave2