title: Hadoop Configured getConf() returning null
body: <p>I have a Spring MVC application running on tomcat which submits MapReduce jobs and analyzes results. My Spring Batch tasklet is able to successfully call an MR driver class and run the job. The driver class extends <code>Configured</code> and implements <code>Tool</code> and is easily able to manipulate HDFS files. The maven module containing the driver class and MR code is added as a dependency to the webapp module.</p>
  
  <p>For analysis, I created a new class in the webapp module which extends <code>Configured</code>. This class is supposed to read an HDFS file and analyze it. However when I try to create the <code>FileSystem</code> object I am getting a null pointer exception.</p>
  
  <pre><code>public class ReportAnalyzer extends Configured{
  
      public void analyze(String path) throws Exception{
          FileSystem hdfs=FileSystem.get(getConf()); &lt;-- NPE
  
          //create Path, etc.
      }
  }  
  </code></pre>
  
  <p>Is there anything else that needs to be done in order to get the <code>FileSystem</code> object? the hadoop dependencies are added to the webapp via the mapreduce module.</p>