public static void addServiceOutput(HiveConf conf, Set<WriteEntity> outputs) throws SemanticException {
    String hs2Hostname = getHS2Host(conf);
    if (hs2Hostname != null) {
      outputs.add(new WriteEntity(hs2Hostname, Type.SERVICE_NAME));
    }
  }
Validate if the given table/partition is eligible for update.

@param db Database.
@param tableName Table name of format db.table
@param partSpec Partition spec for the partition
@param replicationSpec Replications specification

@return boolean true if allow the operation
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/ddl/DDLUtils.java