如何查看hdfs文件的副本数?

138 views
Skip to first unread message

zhang辉张

unread,
Oct 11, 2012, 11:10:46 PM10/11/12
to hadoo...@googlegroups.com
如何查看hdfs文件的副本数?

指定某个文件,用神马命令?

feng lu

unread,
Oct 12, 2012, 1:13:52 AM10/12/12
to hadoo...@googlegroups.com
hadoop fsck

On Fri, Oct 12, 2012 at 11:10 AM, zhang辉张 <zhang...@gmail.com> wrote:
如何查看hdfs文件的副本数?

指定某个文件,用神马命令?

--
You received this message because you are subscribed to the Google Groups "Hadoop In China" group.
To post to this group, send email to hadoo...@googlegroups.com.
To unsubscribe from this group, send email to hadooper_cn...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hadooper_cn?hl=en.



--
Don't Grow Old, Grow Up... :-)

zhang辉张

unread,
Oct 12, 2012, 3:34:22 AM10/12/12
to hadoo...@googlegroups.com

收到,谢谢哈

Wei Wu

unread,
Oct 15, 2012, 10:31:16 PM10/15/12
to hadoo...@googlegroups.com
[hadoop@gateway1 ~]$ hadoop fs -help stat
-stat [format] <path>: Print statistics about the file/directory at <path>
in the specified format. Format accepts filesize in blocks (%b), filename (%n),
block size (%o), replication (%r), modification date (%y, %Y)
Reply all
Reply to author
Forward
0 new messages