Step0:Set up static IP.
service network restart
ifconfig 192.168.56.88
Step1:关闭防火墙
service iptables stop[status]
service iptables status
chkconfig --list |grep iptables
chkconfig iptables off
Step2:修改IP
(重启网卡:service network restart)
Step3:修改hostname
a)hostname hadoop
b)vi /ect/sysconfig/network
c)reboot -h now
Step4:SSH免密码登陆
产生密钥(~/.ssh中)ssh-keygen -t rsa
cd ~/.ssh:cp id_rsa.pub authorized_keys
Step5:安装JDK
/usr/local中环境变量生效source /etc/profile
Step6:安装Hadoop
环境变量/ect/profile
Step7:Hadoop配置文件修改($Hadoop/conf/)
hadoop-env.sh:export JAVA_HOME=/usr/local/jdk
core-site.xml:
<configuration>
<property>
<name>fs.default.name</name>
<value>hdfs://hadoop:9000</value>
</property>
<property>
<name>fs.tmp.dir</name>
<value>/usr/local/hadoop/tmp</value>
</property>
</configuration>
hdfs-site.xml:
<configuration>
<property>
<name>dfs.replication</name>
<value>1</value>
</property>
<property>
<name>dfs.permission</name>
<value>false</value>
</property>
</configuration>
mapred-site.xml:
<configuration>
<property>
<name>mapred.job.tracker</name>
<value>hadoop:9001</value>
</property>
</configuration>