hadoop搭建四个配置文件(core-site.xml hdfs-site.xml mapred-site.xml yarn-site.xml )的简单介绍

一 、core-site.xml

<configuration>
        
    <property>
                <name>fs.defaultFSname>
                <value>hdfs://master:9000value>
    property>
    
    <property>
             <name>hadoop.tmp.dirname>
             <value>file:///usr/hadoop/hadoop-2.6.0/tmpvalue> 
    property>
        
        <name>fs.checkpoint.periodname> 
        <value>3600value>
 configuration>

二 、hdfs-site.xml

<configuration>
    
    <property>
            <name>dfs.replicationname>
            <value>2value>
    property>
    
    <property>
             <name>dfs.namenode.name.dirname> 
             <value>file:/usr/hadoop/hadoop-2.6.0/tmp/dfs/namevalue>
    property>
    
    <property>
             <name>dfs.datanode.data.dirname>
             <value>file:/usr/hadoop/hadoop-2.6.0/tmp/dfs/datavalue>
    property>

configuration>

三、 mapred-site.xml

<configuration>

        <property>
              <name>mapreduce.framework.namename>
              <value>yarnvalue>
       property>
configuration>

四、 yarn-site.xml

<configuration>
    
        <property>
                <name>yarn.nodemanager.aux-servicesname>
                <value>mapreduce_shufflevalue>
        property>
         
    <property>
            <name>yarn.resourcemanager.hostnamename>
            <value>mastervalue>
    property> 
        
    <property>    
        <name>yarn.log-aggregation-enablename> 
        <value>truevalue>    
    property>

<configuration>

你可能感兴趣的:(Hadoop)