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/10/28 09:40:27 UTC

[jira] [Created] (SQOOP-2647) Add option for drop-if-exists when using sqoop hcat import.

Muhammad Ehsan ul Haque created SQOOP-2647:
----------------------------------------------

             Summary: 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


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-hcatalog-table-if-exists, which works only if --create-hcatalog-table is present and the effect would be that it drops the hive/hcatalog table before running the data import.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)