private void shutdownMiniDfsAndMrClusters() {
    isSetup = false;
    try {
      if (m_fileSys != null) {
        m_fileSys.close();
      }
    } catch (IOException e) {
      e.printStackTrace();
    }
    if (m_dfs != null) {
      m_dfs.shutdown();
    }
    if (m_mr != null) {
      m_mr.shutdown();
    }
    m_fileSys = null;
    m_dfs = null;
    m_mr = null;
  }
Returns the single instance of class MiniClusterBuilder that
represents the resouces for a mini dfs cluster and a mini
mapreduce cluster.
hcatalog/core/src/test/java/org/apache/hive/hcatalog/MiniCluster.java