private void logErrorMessage(String message) {
    if (console != null) {
      console.printError(message);
    } else {
      LOG.error(message);
    }
  }
Loads the configured hooks corresponding to the specific hook type.
@param type hook type
ql/src/java/org/apache/hadoop/hive/ql/hooks/HiveHooks.java