static File getBaseDir() {
    File baseDir = new File(tmpDir + "/local_base");
    return baseDir;
  }
if (isUseMiniKdc()) {
          getMiniKdc().loginUser(getMiniKdc().getDefaultUserPrincipal());
          sessionConf.put("principal", serverPrincipal);
        }
itests/util/src/main/java/org/apache/hive/jdbc/miniHS2/MiniHS2.java