当前位置:  开发笔记 > 大数据 > 正文

未复制的块计数不准确,但为什么?

如何解决《未复制的块计数不准确,但为什么?》经验,为你挑选了1个好方法。

我收到了大量不同的低重复阻止报告.我想知道是什么导致了这一点.hadoop dfsadmin -metasave报告~232,000个等待复制的MISSING块.我该如何解决?乔布斯运行得很好,似乎没有数据丢失.

请参阅输出hadoop fsck /,hadoop dfsadmin -report,hadoop dfsadmin -metasave,和下面的NameNode的网页图形用户界面:

hadoop fsck /:

 Total size:    6066860793495 B (Total open files size: 47000701003 B)
 Total dirs:    1801
 Total files:   230828 (Files currently being written: 493)
 Total blocks (validated):      242592 (avg. block size 25008494 B) (Total open file blocks (not validated): 681)
 Minimally replicated blocks:   242592 (100.0 %)
 Over-replicated blocks:        0 (0.0 %)
 Under-replicated blocks:       932 (0.38418415 %)
 Mis-replicated blocks:         0 (0.0 %)
 Default replication factor:    3
 Average block replication:     2.9945753
 Corrupt blocks:                0
 Missing replicas:              1851 (0.25479725 %)
 Number of data-nodes:          20
 Number of racks:               1
FSCK ended at Thu Nov 03 10:17:47 CDT 2011 in 7359 milliseconds

hadoop dfsadmin -report:

Configured Capacity: 59070545264640 (53.72 TB)
Present Capacity: 56867905841329 (51.72 TB)
DFS Remaining: 37637696475136 (34.23 TB)
DFS Used: 19230209366193 (17.49 TB)
DFS Used%: 33.82%
Under replicated blocks: 245346
Blocks with corrupt replicas: 73
Missing blocks: 0

metasave输出... hadoop dfsadmin -metasave输出摘录:

232461 files and directories, 243290 blocks = 475751 total
Live Datanodes: 20
Dead Datanodes: 0
Metasave: Blocks waiting for replication: 242747

有大约1000个实际文件被复制(或等待),然后~232,000个文件"MISSING"都类似于:

: blk_2551072940280567829_12480437 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_2565249812869117144_12480431 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_2950011510944289339_12480413 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3809337797233614456_12456357 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3809337797233614456_12463021 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3809337797233614456_12468869 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3809337797233614456_12474511 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3811560762593023914_12440928 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3811560762593023914_12449396 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3811560762593023914_12462184 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3811560762593023914_12465792 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3811560762593023914_12472905 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3812070171484751861_12436051 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
: blk_3815454413870879906_12441243 MISSING (replicas: l: 0 d: 0 c: 0 e: 0)
Metasave: Blocks being replicated: 0
Metasave: Blocks 29 waiting deletion from 17 datanodes.

Namenode web GUI:

Cluster Summary
232390 files and directories, 243235 blocks = 475625 total. Heap Size is 1.84 GB / 8.68 GB (21%)
Configured Capacity :   53.72 TB
DFS Used    :   17.46 TB
Non DFS Used    :   2 TB
DFS Remaining   :   34.26 TB
DFS Used%   :   32.51 %
DFS Remaining%  :   63.77 %
Live Nodes  :   20
Dead Nodes  :   0
Decommissioning Nodes   :   0
Number of Under-Replicated Blocks   :   242532

!更新:!!

我认为这肯定是一个错误,因为"复制不足"的数量现在接近一百万.我们在集群上没有接近那个数量的实际块,所以这必定是一个bug.

Web GUI现在显示以下内容:

Cluster Summary
234877 files and directories, 250074 blocks = 484951 total. Heap Size is 706.5 MB/8.68 GB (7%)
Configured Capacity :   53.72 TB
DFS Used    :   20.71 TB
Non DFS Used    :   1.54 TB
DFS Remaining   :   31.47 TB
DFS Used%   :   38.56 %
DFS Remaining%  :   58.58 %
Live Nodes  :   20
Dead Nodes  :   0
Decommissioning Nodes   :   0
Number of Under-Replicated Blocks   :   451014

Shawn.. 7

我收到了Cloudera的Todd Lipcon的回复.我想更新这个问题以防其他人有这个问题.我注意到CDH3u1的这个问题,这是响应:

"已知"附加"功能在CDH3中被破坏,可能会有这样的错误.我们建议您建议您的用户不要使用它.对于Hadoop 0.20.x的所有版本(CDH和其他版本)都是如此.并将在CDH4(上游版本0.23或更高版本)中修复.

关于这些坏消息我很遗憾.我将调查这个特定的错误,以确保它不存在于上游主干中,但它不太可能在CDH3版本中得到修复."



1> Shawn..:

我收到了Cloudera的Todd Lipcon的回复.我想更新这个问题以防其他人有这个问题.我注意到CDH3u1的这个问题,这是响应:

"已知"附加"功能在CDH3中被破坏,可能会有这样的错误.我们建议您建议您的用户不要使用它.对于Hadoop 0.20.x的所有版本(CDH和其他版本)都是如此.并将在CDH4(上游版本0.23或更高版本)中修复.

关于这些坏消息我很遗憾.我将调查这个特定的错误,以确保它不存在于上游主干中,但它不太可能在CDH3版本中得到修复."

推荐阅读
贾志军
这个屌丝很懒,什么也没留下!
DevBox开发工具箱 | 专业的在线开发工具网站    京公网安备 11010802040832号  |  京ICP备19059560号-6
Copyright © 1998 - 2020 DevBox.CN. All Rights Reserved devBox.cn 开发工具箱 版权所有