1. 程式人生 > >hadoop在windows上的配置檔案

hadoop在windows上的配置檔案

core-site.xml

<configuration>
    <property>
        <name>hadoop.tmp.dir</name> 
        <value>file:/D:/data/hdfs/tmp</value>
        <final>true</final>
        <description>A base for other temporary directories.</description>
    </property
> <property> <name>fs.defaultFS</name> <value>hdfs://tim:8020</value> <final>true</final> </property> </configuration>

hdfs-site.xml

<configuration>
  <property>
    <name>dfs.replication</name
> <value>1</value> </property> <property> <name>dfs.name.dir</name> <value>file:/D:/data/hdfs/name</value> </property> <property> <name>dfs.data.dir</name> <value>file:/D:/data/hdfs/data</value> </
property> <property> <name>dfs.permissions</name> <value>false</value> </property> </configuration>

mapred-site.xml

<configuration>
    <property>
        <name>mapreduce.framework.name</name>
        <value>yarn</value>
    </property>
</configuration>

yarn-site.xml

<configuration>
    <property>
        <name>yarn.nodemanager.aux-services</name>
        <value>mapreduce_shuffle</value>
    </property>
    <property>
        <name>yarn.resourcemanager.hostname</name>
        <value>tim</value>
    </property>
</configuration>