public static void setApplicationTag(HiveConf queryConf, String queryTag) {
    String jobTag = HiveConf.getVar(queryConf, HiveConf.ConfVars.HIVE_QUERY_TAG);
    if (jobTag == null || jobTag.isEmpty()) {
      jobTag = queryTag;
    } else {
      jobTag = jobTag.concat("," + queryTag);
    }
    if (SessionState.get() != null) {
      jobTag = jobTag.concat("," + USERID_TAG + "=" + SessionState.get().getUserName());
    }
    queryConf.set(MRJobConfig.JOB_TAGS, jobTag);
    queryConf.set(TezConfiguration.TEZ_APPLICATION_TAGS, jobTag);
  }
Disable the HMS cache. Useful in situations when you
must not get cached metadata responses.
ql/src/java/org/apache/hadoop/hive/ql/QueryState.java