码迷,mamicode.com
首页 > 其他好文 > 详细

Hadoop2的伪分布式的安装

时间:2015-07-30 23:04:00      阅读:138      评论:0      收藏:0      [点我收藏+]

标签:

 

技术分享准备linux环境【java、ip、hostname、hosts、iptables、chkconfig、ssh】
技术分享下载稳定版2.2.0
技术分享修改etc/hadoop目录下的配置文件core-site.xml、hdfs-site.xml、yarn-site.xml、mapred-site.xml
技术分享启动
技术分享验证

 

文件core-site.xml

<configuration>

        <property>

                <name>fs.defaultFS</name>

                <value>hdfs://hadoop0:9000</value>

        </property>

        <property>

                <name>hadoop.tmp.dir</name>

                <value>/usr/local/hadoop-2.2.0/tmp</value>

        </property>

      <property>

                 <name>fs.trash.interval</name>

                 <value>1440</value>

        </property>

</configuration>

 


 

文件hdfs-site.xml

 

<configuration>

    <property>

        <name>dfs.replication</name>

        <value>1</value>

    </property>

    <property>

        <name>dfs.permissions</name>

        <value>false</value>

    </property>

</configuration>

 

文件yarn-site.xml

 

<configuration>

        <property>

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

                <value>mapreduce_shuffle</value>

        </property>

</configuration>

 

文件mapred-site.xml

 

<configuration>

    <property>

        <name>mapreduce.framework.name</name>

        <value>yarn</value>

    </property>

</configuration>

 

启动格式化

 

bin/hdfs namenode -format


 

启动--hdfs

 

sbin/hadoop-daemon.sh start namenode

sbin/hadoop-daemon.sh start datanode

 

 

启动yarn

 

sbin/yarn-daemon.sh start resourcemanager

sbin/yarn-daemon.sh start nodemanager

 

启动——historyserver

 

sbin/mr-jobhistory-daemon.sh start historyserver


 

 

 

 

 

 

 

 

 

Hadoop2的伪分布式的安装

标签:

原文地址:http://www.cnblogs.com/thinkpad/p/4690743.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!