private void setSessionHive() throws HiveSQLException {
    try {
      sessionHive = sessionState.getHiveDb();
    } catch (HiveException e) {
      String msg = "Failed to create Hive Object: " + e;
      LOG.error(msg, e);
      throw new HiveSQLException(msg, e);
    }
  }
Sets sessionHive object created based on sessionConf.
@throws HiveSQLException
service/src/java/org/apache/hive/service/cli/session/HiveSessionImpl.java