@Override
  public boolean alterDataConnector(String dcName, DataConnector connector)
      throws MetaException, NoSuchObjectException {

    MDataConnector mdc = null;
    boolean committed = false;
    try {
      mdc = getMDataConnector(dcName);
      mdc.setUrl(connector.getUrl());
      mdc.setParameters(connector.getParameters());
      mdc.setOwnerName(connector.getOwnerName());
      if (connector.getOwnerType() != null) {
        mdc.setOwnerType(connector.getOwnerType().name());
      }
      if (org.apache.commons.lang3.StringUtils.isNotBlank(connector.getDescription())) {
        mdc.setDescription(connector.getDescription());
      }
      openTransaction();
      pm.makePersistent(mdc);
      committed = commitTransaction();
    } finally {
      rollbackAndCleanup(committed, null);
    }
    return committed;
  }
Alter the dataconnector object in metastore. Currently only the parameters
of the dataconnector or the owner can be changed.
@param dcName the dataconnector name
@param connector the Hive DataConnector object
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/ObjectStore.java