zoukankan      html  css  js  c++  java
  • day05

    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





  • 相关阅读:
    背景透明,文字不透明
    判断数组类型
    前端工作流程自动化——Grunt/Gulp 自动化
    tools安装
    总结
    CSS Hack
    getBoundingClientRect()兼容性处理
    Math.random获得随机数
    spring RestTemplate 工程导入
    系统架构演变
  • 原文地址:https://www.cnblogs.com/duenboa/p/6665433.html
Copyright © 2011-2022 走看看