stop-all.sh //关闭所有
service iptables stop //关闭
vi /home/hadoop-1.2/conf/mapred-sire.xml
[root@node1 conf]# vi mapred-site.xml <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="configuration.xsl"?> <!-- Put site-specific property overrides in this file. --> <configuration> <property> <name>mapred.job.tracker</name> <value>node1:9001</value> </property> </configuration> ~
配置所有的node 的/etc/hosts 里
127.0.0.1 自己的主机名字[node1| node2| node3 |node4]
192.168.80.101 node1
192.168.80.102 node2192.168.80.103 node3
192.168.80.104 node4 并且要保证每台机器之间都可以相互ping通....
scp ./mapred-site.xml root@node2:/home/hadoop-1.2/conf/ //拷贝到其他节点上
原文:http://www.cnblogs.com/duenboa/p/6665433.html