@Override
  public boolean dropDataConnector(String dcname)
      throws NoSuchObjectException, MetaException {
    boolean success = false;
    LOG.info("Dropping dataconnector {} ", dcname);
    dcname = normalizeIdentifier(dcname);
    try {
      openTransaction();

      // then drop the dataconnector
      MDataConnector mdb = getMDataConnector(dcname);
      pm.retrieve(mdb);
      List<MDCPrivilege> dcGrants = this.listDataConnectorGrants(dcname, null);
      if (CollectionUtils.isNotEmpty(dcGrants)) {
        pm.deletePersistentAll(dcGrants);
      }
      pm.deletePersistent(mdb);
      success = commitTransaction();
    } catch (Exception e) {
      LOG.error("Failed to drop data connector", e);
      throw new MetaException(e.getMessage());
    } finally {
      rollbackAndCleanup(success, null);
    }
    return success;
  }
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