Using HDFS Stat CommandsΒΆ
Let us understand how to get details about HDFS files such as replication factor, block size etc.
hdfs dfs -stat
can be used to get the statistics related to file or directory.
%%sh
hdfs dfs -help stat
%%sh
hdfs dfs -stat /user/${USER}/retail_db/orders
%%sh
hdfs dfs -stat %b /user/${USER}/retail_db/orders/part-00000
%%sh
hdfs dfs -stat %F /user/${USER}/retail_db/orders/part-00000
%%sh
hdfs dfs -stat %F /user/${USER}/retail_db/orders/
%%sh
hdfs dfs -stat %o /user/${USER}/retail_db/orders/part-00000
%%sh
hdfs dfs -stat %r /user/${USER}/retail_db/orders/part-00000