Sqoop
  1. Sqoop
  2. SQOOP-1313

Provide an option to TRUNCATE tables before exporting

    Details

    • Type: Improvement Improvement
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.4.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      It'd be great to have an option to TRUNCATE tables before exporting data to them.

      There were a couple of mailing list posts about this feature already[1].

      Sometimes the data has to be replaced completely and having the option of Sqoop taking care of clearing the data first would be convenient. Currently we need to run a custom java action first that does the truncating.

      [1] One example: <http://grokbase.com/t/sqoop/user/13a23b7765/truncate-before-import-export>

        Activity

        Lars Francke created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Lars Francke
          • Votes:
            3 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:

              Development