@Override
  public Class<? extends OutputFormat> getOutputFormatClass() {
    if (isHBaseGenerateHFiles(jobConf)) {
      return HiveHFileOutputFormat.class;
    }
    return HiveHBaseTableOutputFormat.class;
  }
HBase config for determining the client port based on hbase-site.xml
hbase-handler/src/java/org/apache/hadoop/hive/hbase/HBaseStorageHandler.java