title: Old-style mapred API in HBase does not work
body: <p>I have a MapReduce job, which takes HBase table as the output destination
  of my reduce job. My reducer class implements the <code>TableMap</code> interface in
  package <code>org.apache.hadoop.hbase.mapred</code>, and I used the <code>initTableReduceJob()</code>
  function in <code>TableMapReduceUtil</code> class from
  package <code>org.apache.hadoop.hbase.mapred</code> to configure my job.</p>
  
  <p>But when I run my job, I got the following error at reduce stage</p>
  
  <pre><code>java.lang.NullPointerException
  at org.apache.hadoop.mapred.Task.getFsStatistics(Task.java:1099)
   at
  org.apache.hadoop.mapred.ReduceTask$OldTrackingRecordWriter.&lt;init&gt;(ReduceTask.java:442)
  at org.apache.hadoop.mapred.ReduceTask.runOldReducer(ReduceTask.java:490)
   at org.apache.hadoop.mapred.ReduceTask.run(ReduceTask.java:420)
  at org.apache.hadoop.mapred.Child$4.run(Child.java:255)
   at java.security.AccessController.doPrivileged(Native Method)
  at javax.security.auth.Subject.doAs(Subject.java:396)
   at
  org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1093)
  at org.apache.hadoop.mapred.Child.main(Child.java:249)
  </code></pre>
  
  <p>My HBase version is 0.94.0 and my Hadoop version is 1.0.1.</p>
  
  <p>I found a post similar to my question at:
  <a href="https://forums.aws.amazon.com/thread.jspa?messageID=394846" rel="nofollow">https://forums.aws.amazon.com/thread.jspa?messageID=394846</a></p>
  
  <p>Could anyone give me some hint about why this happened? Should I just stick
  with the <code>org.apache.hadoop.hbase.mapreduce</code> package?</p>