@Override
    public JobConf obtainJobConf(MiniMRCluster cluster) {
      if (cluster == null) return null;
      try {
        Object runner = cluster.getJobTrackerRunner();
        Method meth = runner.getClass().getDeclaredMethod("getJobTracker", emptyParam);
        Object tracker = meth.invoke(runner, new Object[] {});
        Method m = tracker.getClass().getDeclaredMethod("getConf", emptyParam);
        return (JobConf) m.invoke(tracker, new Object[] {});
      } catch (NoSuchMethodException nsme) {
        return null;
      } catch (InvocationTargetException ite) {
        return null;
      } catch (IllegalAccessException iae) {
        return null;
      }
    }
This class provides shims for HBase to interact with the Hadoop 1.0.x and the Hadoop 0.23.x
series. NOTE: No testing done against 0.22.x, or 0.21.x.
hbase-server/src/test/java/org/apache/hadoop/hbase/tool/MapreduceTestingShim.java