private static HiveConf createHiveConf() {
    SessionState session = SessionState.get();
    return (session == null) ? new HiveConf(Hive.class) : session.getConf();
  }
Same as {@link #get(HiveConf)}, except that it does not register all functions.
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java