在hadoop中查看文件的块数 [英] Viewing the number of blocks for a file in hadoop

查看:83
本文介绍了在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.

下面是命令:

hadoop fsck [path] [options]

查看特定文件的块:

hadoop fsck /path/to/file -files -blocks

这篇关于在hadoop中查看文件的块数的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆