public void createDataConnector(DataConnector connector, boolean ifNotExist)
      throws AlreadyExistsException, HiveException {
    try {
      getMSC().createDataConnector(connector);
    } catch (AlreadyExistsException e) {
      if (!ifNotExist) {
        throw e;
      }
    } catch (Exception e) {
      throw new HiveException(e);
    }
  }
Create a dataconnector
@param connector
@param ifNotExist if true, will ignore AlreadyExistsException exception
@throws AlreadyExistsException
@throws HiveException
ql/src/java/org/apache/hadoop/hive/ql/metadata/Hive.java