sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sai Karthik Ganguru (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-1365) There is no need to throw an exception when a .java file can not be renamed or even if it can not be moved to a destination folder
Date Tue, 08 Jul 2014 15:13:05 GMT

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

Sai Karthik Ganguru commented on SQOOP-1365:

Yes I agree. But throwing out an exception (even though it is a DEBUG) might actually not
be the rite idea. Please correct me if I am wrong. Anyhow, I have removed the exception being
thrown during this DEBUG and attached a patch.

> There is no need to throw an exception when a .java file can not be renamed or even if
it can not be moved to a destination folder
> ----------------------------------------------------------------------------------------------------------------------------------
>                 Key: SQOOP-1365
>                 URL: https://issues.apache.org/jira/browse/SQOOP-1365
>             Project: Sqoop
>          Issue Type: Bug
>          Components: connectors
>    Affects Versions: 1.4.3
>            Reporter: Sai Karthik Ganguru
>            Priority: Minor
>         Attachments: SQOOP-1365.patch
> The following error is thrown when a sqoop import script is executed:
> {code}
> DEBUG orm.CompilationManager: Could not rename /tmp/sqoop-abcd/compile/92fa0dd1a081e3540357533bf46b8eae/QueryResult.java
to /opt/abcdefgh/ijkl/./QueryResult.java
> java.io.FileNotFoundException: /opt/abcdefgh/ijkl/./QueryResult.java (Permission denied)
>         at java.io.FileOutputStream.open(Native Method)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:194)
>         at java.io.FileOutputStream.<init>(FileOutputStream.java:145)
>         at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:936)
>         at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:888)
>         at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:835)
>         at org.apache.commons.io.FileUtils.moveFile(FileUtils.java:2385)
>         at org.apache.sqoop.orm.CompilationManager.compile(CompilationManager.java:229)
>         at org.apache.sqoop.tool.CodeGenTool.generateORM(CodeGenTool.java:97)
>         at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:390)
>         at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:476)
>         at org.apache.sqoop.Sqoop.run(Sqoop.java:145)
>         at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>         at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:181)
>         at org.apache.sqoop.Sqoop.runTool(Sqoop.java:220)
>         at org.apache.sqoop.Sqoop.runTool(Sqoop.java:229)
>         at org.apache.sqoop.Sqoop.main(Sqoop.java:238)
> {code}
> Just a warning here should be sufficient. There is no need to thrown an exception since
it does not affect the flow of the Sqoop import script.

This message was sent by Atlassian JIRA

View raw message