title: Do we need to call fs.close() explicitly while working with HDFS using java API?
body: <p>Typical start of working with HDFS using <code>org.apache.hadoop.fs</code> classes on scala is </p>
  
  <pre><code>val conf = new Configuration()
  fs = FileSystem.get(conf)
  </code></pre>
  
  <p>Do we need to call something like
  <code>IOUtils.closeStream(fs)</code> or <code>fs.close()</code> at the end?</p>
  
  <p>I've found the single answer relating to this topic
  <a href="https://groups.google.com/forum/#!topic/nosql-databases/Mn9KLbtmh7M" rel="nofollow">https://groups.google.com/forum/#!topic/nosql-databases/Mn9KLbtmh7M</a></p>
  
  <blockquote>
    <p>In all my experience you let FileSystem instances close themselves.</p>
  </blockquote>
  
  <p>I am not sure I can rely on it.</p>