hadoop学习(二)

The Basics of Multimachine Clusters(2nd)

hadoop配置
可以参考本连接(http://hadoop.apache.org/common/docs/current/api/org/apache/hadoop/conf/Configuration.html)
The framework will load configuration files in order, with the values defined in later files superseding those earlier definitions. The loading order is
hadoop-default.xml, hadoop-site.xml,
and then any user specified resources.
配置文件中会有${text}的value配置方式, ${text}用系统中的值替换(System.getProperties(“text”))
Three critical parameters must be configured for any Hadoop cluster: hadoop.tmp.dir,fs.default.name, and mapred.job.tracker.
Several other parameters are important to tune but not critical: mapred.tasktracker.map.tasks.maximum, mapred.tasktracker.reduce.tasks.maximum, mapred.child.java.opts, and webinterface.private.actions.
If you don’t change this default value for ${hadoop.tmp.dir}, the HDFS data will be stored in /tmp and deleted by the system /tmp cleaning service.

 

当前hadoop-site.xml配置文件被分成了三个,分别是core-site.xml , hdfs-site.xml 和mapred-site.xml (这个在0.20中就已经是这样了)。

参照一下连接:

http://blog.csdn.net/AE86_FC/archive/2010/08/27/5844869.aspx

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值