Check file size in hdfs Check file size in hdfs hadoop hadoop

Check file size in hdfs


Simply use :

hdfs dfs -du -h /path/to/file

I tried the same on my cluster by copying your command. Only possible mistake is that you're using hadoop fs, just use hdfs dfs and make sure you're logged in as a HDFS user.