You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Masahiro Yamaguchi (JIRA)" <ji...@apache.org> on 2014/10/27 23:18:34 UTC
[jira] [Comment Edited] (SQOOP-1622) Copying from staging table
should be in single transaction for pg_bulkload connector
[ https://issues.apache.org/jira/browse/SQOOP-1622?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14185925#comment-14185925 ]
Masahiro Yamaguchi edited comment on SQOOP-1622 at 10/27/14 10:18 PM:
----------------------------------------------------------------------
+1 (non-binding)
> If there are 4 map tasks and 1 reduce task, PGBulkloadExportReducer#reduce is called 4 times in current implementation, we have 4 transaction for copying from staging to destination as a result.
I think map-reduce Job should keep atomicity.
was (Author: yamaguchimsf):
+1 (non-binding)
> If there are 4 map tasks and 1 reduce task, PGBulkloadExportReducer#reduce is called 4 times in current implementation, we have 4 transaction for copying from staging to destination as a result.
I think map-reduce Job keeps atomicity.
> Copying from staging table should be in single transaction for pg_bulkload connector
> ------------------------------------------------------------------------------------
>
> Key: SQOOP-1622
> URL: https://issues.apache.org/jira/browse/SQOOP-1622
> Project: Sqoop
> Issue Type: Improvement
> Components: connectors/postgresql
> Affects Versions: 1.4.5
> Reporter: Masatake Iwasaki
> Assignee: Masatake Iwasaki
>
> PGBulkloadExportReducer#reduce may be called per map task because the map output key is unique ID of map task. Each reduce tasks should do copying from staging table in single transaction.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)