查看hdfs文件的blockSize
# 查看文件的blockSize
[root@cdh01 text]# hdfs dfs -stat "%n %b %o %r %y %F" /tmp/example/access_2013_05_31.log
access_2013_05_31.log 157069653 134217728 3 2020-10-07 02:05:07 regular file
[root@cdh01 text]# hadoop fs -stat "%n %b %o %r %y %F" /tmp/example/access_2013_05_31.log
access_2013_05_31.log 157069653 134217728 3 2020-10-07 02:05:07 regular file
%b:打印文件大小(目录为0)
%n:打印文件名
%o:打印block size
%r:打印备份数
%y:打印UTC日期 yyyy