Ubuntu12.04 Hadoop2.7.3伪分布式配置

前端之家收集整理的这篇文章主要介绍了Ubuntu12.04 Hadoop2.7.3伪分布式配置前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

HDFS的配置

1. etc/hadoop/core-site.xml

<configuration>
    <property>
        <name>fs.defaultFS</name>
        <value>hdfs://localhost:9000</value>
    </property>
    <property>
        <name>hadoop.tmp.dir</name>
        <value>/usr/local/software/hadoop-2.7.3/data</value>
    </property>
</configuration>

2.etc/hadoop/hdfs-site.xml:

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

MapReduce的配置

1.etc/hadoop/mapred-site.xml

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

2. etc/hadoop/yarn-site.xml
<configuration>
    <property>
        <name>yarn.resourcemanager.hostname</name>
        <value>localhost</value>
    </property>
    <property>
        <name>yarn.nodemanager.aux-services</name>
        <value>mapreduce_shuffle</value>
    </property>
</configuration>

关闭从节点上的namenode

$sbin/hadoop-daemon.sh stop datanode

原文链接:https://www.f2er.com/ubuntu/354311.html

猜你在找的Ubuntu相关文章