public AtlasImportRequest createImportRequest(String sourceDataSet, String targetDataSet,
                                                String sourceClusterName, String targetClusterName,
                                                String sourceFsEndpoint, String targetFsEndpoint) {
    AtlasImportRequest request = new AtlasImportRequest();
    addTransforms(request.getOptions(),
            sourceClusterName, targetClusterName,
            sourceDataSet, targetDataSet,
            sourceFsEndpoint, targetFsEndpoint);
    addReplicatedFrom(request.getOptions(), sourceClusterName);
    LOG.debug("Atlas metadata import request: {}" + request);
    return request;
  }
Helper class to create export/import request.
ql/src/java/org/apache/hadoop/hive/ql/exec/repl/atlas/AtlasRequestBuilder.java