[ https://issues.apache.org/jira/browse/HDFS-10479?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xiaohe Lan updated HDFS-10479: ------------------------------ Description: %b is actually printing the size of a file in bytes, while in help it says filesize in blocks. hdfs dfs -help stat -stat [format] <path> ... : Print statistics about the file/directory at <path> in the specified format. Format accepts filesize in blocks (%b), type (%F), group name of owner (%g), name (%n), block size (%o), replication (%r), user name of owner (%u), modification date (%y, %Y). %y shows UTC date as "yyyy-MM-dd HH:mm:ss" and %Y shows milliseconds since January 1, 1970 UTC. If the format is not specified, %y is used by default. was: %b is actually printing the size of a file in bytes, while in help it stats filesize in blocks. hdfs dfs -help stat -stat [format] <path> ... : Print statistics about the file/directory at <path> in the specified format. Format accepts filesize in blocks (%b), type (%F), group name of owner (%g), name (%n), block size (%o), replication (%r), user name of owner (%u), modification date (%y, %Y). %y shows UTC date as "yyyy-MM-dd HH:mm:ss" and %Y shows milliseconds since January 1, 1970 UTC. If the format is not specified, %y is used by default. > help of stat is confusing > ------------------------- > > Key: HDFS-10479 > URL: https://issues.apache.org/jira/browse/HDFS-10479 > Project: Hadoop HDFS > Issue Type: Bug > Components: hdfs > Affects Versions: 2.7.2 > Reporter: Xiaohe Lan > Priority: Trivial > > %b is actually printing the size of a file in bytes, while in help it says > filesize in blocks. > hdfs dfs -help stat > -stat [format] <path> ... : > Print statistics about the file/directory at <path> > in the specified format. Format accepts filesize in > blocks (%b), type (%F), group name of owner (%g), > name (%n), block size (%o), replication (%r), user name > of owner (%u), modification date (%y, %Y). > %y shows UTC date as "yyyy-MM-dd HH:mm:ss" and > %Y shows milliseconds since January 1, 1970 UTC. > If the format is not specified, %y is used by default. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org