查看hadoop中文件的块数 [英] Viewing the number of blocks for a file in hadoop
本文介绍了查看hadoop中文件的块数的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何查看在Hadoop文件系统中有多少块文件已被分解?
How can I view how many blocks has a file been broken into, in a Hadoop file system?
推荐答案
我们可以使用hadoop文件系统检查命令来了解特定文件的块。
We can use hadoop file system check command to know the blocks for the specific file.
以下是命令:
Below is the command:
hadoop fsck [path] [options]
要查看块对于特定文件:
To view the blocks for the specific file :
hadoop fsck /path/to/file -files -blocks
这篇关于查看hadoop中文件的块数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文