Details
-
Improvement
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
We're currently creating generated class in temporary directory and then moving to final directory. However in case that the file is already there (for example from previous run), we print out ogly exception stack trace. I would like to change this error message from ERROR to DEBUG as this error message is being ignored anyway.
Example of the stack trace:
12/04/09 17:28:38 ERROR orm.CompilationManager: Could not rename /tmp/location to /final/location
java.io.IOException: Destination '/final/location' already exists
at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:1811)
at org.apache.sqoop.orm.CompilationManager.compile(CompilationManager.java:227)
at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:83)