sudo gedit /etc/profile
#set java environment
export JAVA_HOME=/home/hadoop/java
export JRE_HOME=$JAVA_HOME/jre
export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH
export PATH=$JAVA_HOME/bin:$JRE_HOME/bin:$PATH
#set hadoop environment
export HADOOP_HOME=/home/hadoop/hadoop
export CLASSPATH=$HADOOP_HOME/lib:$CLASSPATH
export PATH=$HADOOP_HOME/bin:$PATH
#set hbase environment
export HBASE_HOME=/home/hadoop/hbase
export CLASSPATH=$HBASE_HOME/lib:$CLASSPATH
export PATH=$HBASE_HOME/bin:$PATH
#set nutch environment
export NUTCH_HOME=/home/hadoop/nutch
export CLASSPATH=$NUTCH_HOME/lib:$CLASSPATH
export PATH=$NUTCH_HOME/bin:$PATH
sudo gedit /etc/hosts
#127.0.1.1 slave5
122.205.7.180 master-server
122.205.7.191 slave1
122.205.7.192 slave2
122.205.7.176 slave3
122.205.7.178 slave4
122.205.7.181 slave5
122.205.7.150 slave6