You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sqoop.apache.org by "Muhammad Ehsan ul Haque (JIRA)" <ji...@apache.org> on 2015/12/07 08:46:10 UTC
[jira] [Comment Edited] (SQOOP-2647) Add option for drop-if-exists
when using sqoop hcat import.
[ https://issues.apache.org/jira/browse/SQOOP-2647?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15044518#comment-15044518 ]
Muhammad Ehsan ul Haque edited comment on SQOOP-2647 at 12/7/15 7:45 AM:
-------------------------------------------------------------------------
The patch adds a parameter "\--drop-and-create-hcatalog-table", which is same as "\--create-hcatalog-table", with an addition that it will do a drop if exists.
was (Author: ehsan):
The patch adds a parameter "--drop-and-create-hcatalog-table", which is same as "--create-hcatalog-table", with an addition that it will do a drop if exists.
> Add option for drop-if-exists when using sqoop hcat import.
> -----------------------------------------------------------
>
> Key: SQOOP-2647
> URL: https://issues.apache.org/jira/browse/SQOOP-2647
> Project: Sqoop
> Issue Type: Improvement
> Components: hive-integration
> Affects Versions: 1.4.6
> Reporter: Muhammad Ehsan ul Haque
> Assignee: Muhammad Ehsan ul Haque
> Priority: Minor
> Labels: hcatalog, trivial
> Fix For: 1.4.7
>
>
> To recover from a failed sqoop import via hcat using --create-hcatalog-table, there is a manual step needed to clean up the hive table i.e. (DROP TABLE IF EXISTS <table_name>). It would be great to have another flag --drop-and-create-hcatalog-table, which works like --create-hcatalog-table with an addition of drop if exists before creating the table.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)