@AfterClass
  public static void afterTest() throws Exception {
    if (miniHS2 != null && miniHS2.isStarted()) {
      miniHS2.stop();
    }
  }
This class is cloned from TestJdbcWithMiniMR, except use Namenode HA.
itests/hive-unit/src/test/java/org/apache/hive/jdbc/TestJdbcWithMiniHA.java