title: Decompress all Gzip files in a Hadoop hdfs directory
body: <p>On my HDFS, I have a bunch of gzip files that I want to decompress to a normal format. Is there an API for doing this? Or how could I write a function to do this?</p>
  
  <p>I don't want to use any command-line tools; instead, I want to accomplish this task by writing Java code.</p>