Hadoop fs lookup for block size?

前端 未结 5 741
悲哀的现实
悲哀的现实 2021-02-05 12:22

In Hadoop fs how to lookup the block size for a particular file?

I was primarily interested in a command line, something like:

hadoop fs ... hdfs://fs1.d         


        
5条回答
  •  再見小時候
    2021-02-05 13:19

    Seems hadoop fs doesn't have options to do this.

    But hadoop fsck could.

    You can try this

    $HADOOP_HOME/bin/hadoop fsck /path/to/file -files -blocks
    

提交回复
热议问题