Hadoop fs lookup for block size?

前端 未结 5 731
悲哀的现实
悲哀的现实 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:11

    For displaying the actual block size of the existing file within HDFS I used:

    [pety@master1 ~]$ hdfs dfs -stat %o /tmp/testfile_64
    67108864
    

提交回复
热议问题