title: How to find the max file size in a hdfs directory
body: <p>I want to find the max size of files in a HDFS directory. Does anyone have any idea how to find it? I'm in Hadoop 2.6.0. </p>
  
  <p>I found <code>hadoop fs -ls -S /url</code> which can <code>Sort output by file size</code> from <a href="http://hadoop.apache.org/docs/r2.7.0/hadoop-project-dist/hadoop-common/FileSystemShell.html#ls" rel="nofollow">Hadoop 2.7.0 document</a>, but it's not supported in 2.6.0. So is there any similar function that can sort output files by size? Thank you!</p>