public String getKeyTabFile(String principalName) {
    return userPrincipals.get(principalName);
  }
Hadoop security classes read the default realm via static initialization,
 before miniKdc is initialized. Hence we set the realm via a test configuration
 and propagate that to miniKdc.
itests/hive-minikdc/src/test/java/org/apache/hive/minikdc/MiniHiveKdc.java