hadoop学习(四)

HDFS Details for Multimachine Clusters

Hadoop Core does not need highly reliable storage on the DataNode or TaskTracker nodes. Hadoop Core greatly benefits from increased network bandwidth.(经典)
A Minimal hadoop-site.xml for an HFS Cluster (conf/hadoop-site.xml)
<property>
    <name>fs.default.name</name>
    <value>hdfs://master:54310/</value>
    <description>The name of the default file system. A URI whose
        scheme and authority determine the FileSystem implementation. The
        uri's scheme determines the config property (fs.SCHEME.impl) naming
        the FileSystem implementation class. The uri's authority is used to
        determine the host, port, etc. for a filesystem.
    </description>
</property>
<property>
    <name>hadoop.tmp.dir</name>
    <value>/hdfs</value>
    <description>A base for other all storage directories,
        temporary and persistent.
    </description>
</property>

Building the HDFS Configuration
    1、Generating the conf/hadoop-site.xml File
    2、Generating the conf/slaves and conf/masters Files
    3、Customizing the conf/hadoop-env.sh File
Distributing Your Installation Data
    检查文件系统用户可读写;检查各个节点的java环境变量;配置不需要密码的ssh;设置HADOOP_PID_DIR的文件夹
Formatting Your HDFS
    hadoop namenode -format
Starting Your HDFS Installation
    start-dfs.sh



在构建hadoop环境中还需要明确下“HADOOP_PID_DIR "作用。  

(未完待续)

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值