Viewing the number of blocks for a file in hadoop

前端 未结 4 758
暖寄归人
暖寄归人 2020-12-15 05:53

How can I view how many blocks has a file been broken into, in a Hadoop file system?

4条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-12-15 06:30

    hadoop fsck filetopath

    used the above commad in CDH 5. Got the below Error.

    hadoop-hdfs/bin/hdfs: line 262: exec: : not found

    Use the below command and it worked good

    hdfs fsck filetopath

提交回复
热议问题