你好,游客 登录 注册 搜索
背景:
阅读新闻

Hadoop参数说明

[日期:2013-03-06] 来源:Linux社区  作者:hijk139 [字体:大 中 小]

datanode节点上data存储的目录,可以配置多个目录共同存放数据,如果目录不存在,则忽略。此处配置了5个目录存放data
[Hadoop@node1 ~]$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg_wtoc3-lv_root
                      25G  3.3G  20G  15% /
tmpfs                  32G  88K  32G  1% /dev/shm
/dev/cciss/c0d0p1    485M  38M  422M  9% /boot
/dev/mapper/vg_wtoc300-lv_data1
                      917G 1023M  870G  1% /data1
/dev/mapper/vg_wtoc301-lv_data2
                      917G  3.1G  868G  1% /data2
/dev/mapper/vg_wtoc3-lv_home
                      80G  13G  63G  17% /home
/dev/mapper/mpathe    474G  381G  69G  85% /data02
/dev/mapper/mpathf    474G  379G  71G  85% /data03
tmpfs                  16G  3.4G  13G  22% /dev/flare
/dev/mapper/mpathd    474G  378G  72G  85% /data01
fuse_dfs              12T  8.9T  2.8T  77% /home/ocdc/fuse-dfs
/dev/mapper/mpathg    474G  373G  77G  83% /data04
/dev/mapper/mpathh    474G  373G  77G  83% /data05


<property>
        <name>dfs.datanode.address</name>
        <value>0.0.0.0:50010</value>
        <description>
    The address where the datanode server will listen to.
    If the port is 0 then the server will start on a free port.
        </description>
</property>
datanode监听的地址
[hadoop@node1 ~]$ netstat -an|grep 50010|grep LISTEN
tcp        0      0 ::ffff:192.168.0.70:50010    :::*                        LISTEN


<property>
        <name>dfs.datanode.http.address</name>
        <value>0.0.0.0:50075</value>
        <description>
    The datanode http server address and port.
    If the port is 0 then the server will start on a free port.
        </description>
</property>

datanode的HTTP服务器和端口,默认50075

[hadoop@node1 ~]$ netstat -an|grep 50075
tcp        0      0 ::ffff:192.168.0.70:50075    :::*                        LISTEN

<property>
        <name>dfs.datanode.ipc.address</name>
        <value>0.0.0.0:50020</value>
        <description>
    The datanode ipc server address and port.
    If the port is 0 then the server will start on a free port.
        </description>
</property>
atanode的RPC服务器地址和端口,默认50020


<property>
        <name>dfs.datanode.handler.count</name>
        <value>20</value>
        <description>The number of server threads for the datanode.</description>
</property>

--datanode 线程数

<property>
        <name>dfs.namenode.handler.count</name>
        <value>20</value>
        <description>The number of server threads for the namenode.</description>
</property>
--namenode的线程数
<property>
        <name>dfs.web.ugi</name>
        <value>hadoop,hadoop</value>
        <description>The user account used by the web interface.
    Syntax: USERNAME,GROUP1,GROUP2, ...
        </description>
</property>
--Web接口访问的用户名和组的帐户设定,此处设置和主机配置明显不符合
<property>
        <name>dfs.replication</name>
        <value>2</value>
        <description>Default block replication.
        The actual number of replications can be specified when the file is created.
        The default is used if replication is not specified in create time.
        </description>
</property>
--块复制数量,如果是裸盘,默认设置为3,此处为2
<property>
        <name>dfs.replication.min</name>
        <value>1</value>
        <description>Minimal block replication.
        </description>
</property>
--块复制的最小数量
<property>
        <name>dfs.support.append</name>
        <value>true</value>
        <description>set if hadoop support append</description>
</property>
--是否运行文件追加写,默认为false
<property>
        <name>fs.checkpoint.period</name>
        <value>30</value>
        <description>set if hadoop support append</description>
</property>
---checkpoint周期,默认3600秒
<property>
        <name>dfs.http.address</name>
        <value>0.0.0.0:50070</value>
</property>
---namenode的http访问地址和端口
<property>
        <name>fs.checkpoint.dir</name>
        <value>${hadoop.tmp.dir}/dfs/namesecondary</value>
        <description>Determines where on the local filesystem the DFS secondary
        name node should store the temporary images to merge.
        If this is a comma-delimited list of directories then the image is
        replicated in all of the directories for redundancy.
        </description>
</property>
--第二(备份)DFS namenode目录
<property>
    <name>dfs.balance.bandwidthPerSec</name>
    <value>10485760</value>
    <description>
        Specifies the maximum bandwidth that each datanode can utilize for the balancing purpose in term of the number of bytes per second.
    </description>
</property>
--用来做负载均衡功能时,可利用的的最大带宽
<property>
    <name>dfs.datanode.max.xcievers</name>
    <value>4096</value>
</property>
--Hadoop HDFS Datanode同时处理文件的上限,有点类似于linux的nfile
<property>
        <name>dfs.permissions</name>
        <value>false</value>
</property>
--文件操作时,是否检查权限????
<property>
    <name>fs.hdfs.impl.disable.cache</name>
    <value>false</value>
</property>
----???
<property>
    <name>dfs.name.dir.shared0</name>
    <value>/namenode/namenode0</value>
</property>

linux
相关资讯       Hadoop参数 
本文评论   查看全部评论 (0)
表情: 表情 姓名: 字数

       

评论声明
  • 尊重网上道德,遵守中华人民共和国的各项有关法律法规
  • 承担一切因您的行为而直接或间接导致的民事或刑事法律责任
  • 本站管理人员有权保留或删除其管辖留言中的任意内容
  • 本站有权在网站内转载或引用您的评论
  • 参与本评论即表明您已经阅读并接受上述条款