HDFS usage commands and getting metadata

Now let us have a look at HDFS usage commands and also commands used to get the metadata.

  • hadoop fs -df – to get details about the amount of storage used by HDFS. Use -s to get summarized information and -h to get information in readable format.
  • hadoop fs -du – to get the size of data that is copied
  • hdfs fsck – to get metadata for given directory or files.

Share this post