service iptables stop

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  node2
192.168.80.103  node3
192.168.80.104  node4  并且要保证每台机器之间都可以相互ping通....

scp ./mapred-site.xml  root@node2:/home/hadoop-1.2/conf/        //拷贝到其他节点上

配置了mapred-site.xml之后   用
bin/start-all.sh       启动所有的服务  此时配置的mapred-site.xml指定node1为jobtracker
[root@node1 bin]# jps
3932 JobTracker
3775 NameNode
4045 Jps

Eclipse的Hadoop插件下载地址:https://github.com/winghc/hadoop2x-eclipse-plugin


 ./hadoop dfsadmin -safemode leave



来自为知笔记(Wiz)


posted on 2017-04-04 16:56  duenboa  阅读(154)  评论(0编辑  收藏  举报