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

Hadoop伪分布式环境配置

时间:2014-05-16 21:22:50      阅读:318      评论:0      收藏:0      [点我收藏+]

标签:style   c   java   tar   color   a   

Step1:关闭防火墙
    service iptables stop[status]
    service iptables status
    chkconfig --list |grep iptables
    chkconfig iptables off
Step2:修改IP
   (重启网卡:service network restart)
Step3:修改hostname
   /etc/hosts
Step4:SSH免密码登陆
    产生密钥(~/.ssh中)ssh-keygen -t rsa
    cd ~/.ssh:cpid_rsa.pub authorized_keys
Step5:安装JDK
   /usr/local中环境变量生效source /etc/profile

Step6:安装Hadoop

  环境变量/ect/profile
Step7:Hadoop配置文件修改($Hadoop/conf/)
hadoop-env.sh:export JAVA_HOME=/usr/local/jdk
core-site.xml:
<configuration>
    <property>
            <name>fs.default.name</name>
            <value>hdfs://hadoop:9000</value>
    </property>
    <property>
            <name>fs.tmp.dir</name>
            <value>/usr/local/hadoop/tmp</value>
    </property>
</configuration>
hdfs-site.xml:
<configuration>
    <property>
            <name>dfs.replication</name>
            <value>1</value>
    </property>
    <property>
            <name>dfs.permission</name>
            <value>false</value>
    </property>
</configuration>
mapred-site.xml:
<configuration>
    <property>
            <name>mapred.job.tracker</name>
            <value>hadoop:9001</value>
    </property>
</configuration>

Hadoop伪分布式环境配置,布布扣,bubuko.com

Hadoop伪分布式环境配置

标签:style   c   java   tar   color   a   

原文地址:http://www.cnblogs.com/conie/p/3725288.html

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