You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Veena Basavaraj (JIRA)" <ji...@apache.org> on 2014/10/22 21:25:34 UTC
[jira] [Comment Edited] (SQOOP-1603) Sqoop2: Explicit support for
Merge in the Sqoop Job lifecyle
[ https://issues.apache.org/jira/browse/SQOOP-1603?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14180363#comment-14180363 ]
Veena Basavaraj edited comment on SQOOP-1603 at 10/22/14 7:24 PM:
------------------------------------------------------------------
[~jarcec] if it is just fixing the naming and using this stage to do the output committing, It seems a good idea. Destroyer seems like a wrong choice for committing data.
[~gwenshap] we dont have to do it as a destroy step just because others do, I dont know those systems and I would ask the same question there. I am not sure if those systems call this a destroy step as well.
was (Author: vybs):
[~jarcec] if it is just fixing the naming and using this stage to do the output committing, It seems a good idea. Destroyer seems like a wrong choice for committing data.
> Sqoop2: Explicit support for Merge in the Sqoop Job lifecyle
> --------------------------------------------------------------
>
> Key: SQOOP-1603
> URL: https://issues.apache.org/jira/browse/SQOOP-1603
> Project: Sqoop
> Issue Type: Bug
> Reporter: Veena Basavaraj
> Assignee: Qian Xu
>
> This ticket was created while reviewing the Kite Connector use case where the destroyer does the actual temp data set merge
> https://reviews.apache.org/r/26963/diff/# [~stanleyxu2005]
> {code}
> public void destroy(DestroyerContext context, LinkConfiguration link,
> ToJobConfiguration job) {
> LOG.info("Running Kite connector destroyer");
> // Every loader instance creates a temporary dataset. If the MR job is
> // successful, all temporary dataset should be merged as one dataset,
> // otherwise they should be deleted all.
> String[] uris = KiteDatasetExecutor.listTemporaryDatasetUris(
> job.toDataset.uri);
> if (context.isSuccess()) {
> KiteDatasetExecutor executor = new KiteDatasetExecutor(job.toDataset.uri,
> context.getSchema(), link.link.fileFormat);
> for (String uri : uris) {
> executor.mergeDataset(uri);
> LOG.info(String.format("Temporary dataset %s merged", uri));
> }
> } else {
> for (String uri : uris) {
> KiteDatasetExecutor.deleteDataset(uri);
> LOG.info(String.format("Temporary dataset %s deleted", uri));
> }
> }
> }
> {code}
> Wondering if such things should be its own phase rather than in destroyers. The responsibility of destroyer is more to clean up/ closing/ anything thats pretty much destroying, should such operations that modify records its own step.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)