Uploaded image for project: 'Sqoop'
  1. Sqoop
  2. SQOOP-883

Remove input directory prior Sqoop import

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.2
    • Fix Version/s: 1.4.4
    • Component/s: None
    • Labels:
      None

      Description

      Sqoop will fail if target directory already exists on HDFS. This can for example happen after previously failed Sqoop import or in cases when users are re-importing the tables on regular basis.

      Right now user is forced to remove the input directory manually prior re-executing Sqoop. I think that it might be useful to add a new argument that would nuke the target directory if it exists automatically.

      I believe that this feature will be safe to use as it will be turned off by default. User will have to explicitly specify extra command line argument in order to remove any data.

        Attachments

        1. SQOOP-883-3.patch
          13 kB
          Raghav Kumar Gautam
        2. SQOOP-883-2.patch
          11 kB
          Raghav Kumar Gautam
        3. sqoop-883.diff
          12 kB
          Raghav Kumar Gautam

          Issue Links

            Activity

              People

              • Assignee:
                raghavgautam Raghav Kumar Gautam
                Reporter:
                jarcec Jarek Jarcec Cecho
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: