zoukankan      html  css  js  c++  java
  • 完全分布模式的四大模块设置

    配置完全分布式(${hadoop_home}/etc/hadoop/)  --->full

    2018-12-21 09:41:47

    [core-site.xml]

                       <?xml version="1.0" encoding="UTF-8"?>

                       <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

                       <configuration>

                                         <property>

                                                            <name>fs.defaultFS</name>

                                                            <value>hdfs://s250/</value>

                                         </property>

         </configuration>


    此处添加主控端(namenode节点)的IP或者主机名

    [hdfs-site.xml]

                       <?xml version="1.0" encoding="UTF-8"?>

                       <?xml-stylesheet type="text/xsl" href="configuration.xsl"?>

                       <configuration>

                                         <property>

                                                            <name>dfs.replication</name>

                                                            <value>3</value>

                                         </property>

                       </configuration>


    此处添加有多少子客户端(datanode节点),写数量即可,不包含namenode节点

    [mapred-site.xml]   不变

    [yarn-site.xml]

                       <?xml version="1.0"?>

                       <configuration>

                                         <property>

                                                            <name>yarn.resourcemanager.hostname</name>

                                                            <value>s250</value>

                                         </property>

                                         <property>

                                                            <name>yarn.nodemanager.aux-services</name>

                                                            <value>mapreduce_shuffle</value>

                                         </property>

                       </configuration>


    此处添加主控端主机名字(namenode节点的主机名)

    回首间---我错过了那片星海
  • 相关阅读:
    常见的线性结构
    Lambda表达式学习笔记
    Spring Security 入门 (二)
    Spring Security 入门(一)
    Eclipse 创建 Maven 项目
    初学 Spring MVC(基于 Spring in Action)
    蓝桥杯之入学考试
    Java 学习总结
    二叉搜索树和红黑树
    Detours 劫持
  • 原文地址:https://www.cnblogs.com/Vowzhou/p/10153895.html
Copyright © 2011-2022 走看看