修改Hadoop配置文件

来源:互联网 发布:n反斜杠百分之d c语言 编辑:程序博客网 时间:2024/06/05 01:05

1.hadoop-env.sh


export JAVA_HOME=/usr/local/jdk/

 

2.core-site.xml


<configuration>
    <property>
        <name>fs.default.name</name>
        <value>hdfs://hadoop0:9000</value>
    </property>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>/usr/local/hadoop/tmp</value>
    </property> 
</configuration>

3.hdfs-site.xml


<configuration>
    <property>
        <name>dfs.replication</name>
        <value>1</value>
    </property>
    <property>
        <name>dfs.permissions</name>
        <value>false</value>
    </property>
</configuration>

4.mapred-site.xml
<configuration>
    <property>
        <name>mapred.job.tracker</name>
        <value>hadoop0:9001</value>
    </property>
</configuration>

 

 

 

0 0
原创粉丝点击