[ 
https://issues.apache.org/jira/browse/SQOOP-883?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13681469#comment-13681469
 ] 

Hudson commented on SQOOP-883:
------------------------------

Integrated in Sqoop-ant-jdk-1.6-hadoop200 #697 (See 
[https://builds.apache.org/job/Sqoop-ant-jdk-1.6-hadoop200/697/])
    SQOOP-883: Remove input directory prior Sqoop import (Revision 
5bfd84e137e8460408775e4c62bdf052bc262337)

     Result = SUCCESS
jarcec : 
https://git-wip-us.apache.org/repos/asf?p=sqoop.git&a=commit&h=5bfd84e137e8460408775e4c62bdf052bc262337
Files : 
* src/test/com/cloudera/sqoop/TestSqoopOptions.java
* src/java/org/apache/sqoop/tool/BaseSqoopTool.java
* src/docs/user/import.txt
* src/test/com/cloudera/sqoop/mapreduce/TestImportJob.java
* src/java/org/apache/sqoop/SqoopOptions.java
* src/java/org/apache/sqoop/tool/ImportTool.java

                
> Remove input directory prior Sqoop import
> -----------------------------------------
>
>                 Key: SQOOP-883
>                 URL: https://issues.apache.org/jira/browse/SQOOP-883
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.2
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Raghav Kumar Gautam
>            Priority: Minor
>             Fix For: 1.4.4
>
>         Attachments: SQOOP-883-2.patch, SQOOP-883-3.patch, sqoop-883.diff
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to