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

Remove input directory prior Sqoop import

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4.2
    • 1.4.4
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: