sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Attila Szabo (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (SQOOP-2751) Test TestIncrementalImport is failing
Date Tue, 05 Dec 2017 22:45:00 GMT

     [ https://issues.apache.org/jira/browse/SQOOP-2751?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Attila Szabo updated SQOOP-2751:
--------------------------------
    Fix Version/s:     (was: 1.4.7)
                   no-release

> Test TestIncrementalImport is failing
> -------------------------------------
>
>                 Key: SQOOP-2751
>                 URL: https://issues.apache.org/jira/browse/SQOOP-2751
>             Project: Sqoop
>          Issue Type: Bug
>    Affects Versions: 1.4.6
>            Reporter: Jarek Jarcec Cecho
>            Assignee: Jarek Jarcec Cecho
>             Fix For: no-release
>
>         Attachments: SQOOP-2751.patch
>
>
> With exception:
> {code}
> 2015-12-20 08:58:48,059 (main) [ERROR - org.apache.sqoop.tool.ImportTool.run(ImportTool.java:613)]
Encountered IOException running import job: java.io.IOException: java.sql.SQLException: Column
not found: id in statement [SELECT MAX("id") FROM "incrementalHiveAppendEmptyThenFull"]
> 	at org.apache.sqoop.tool.ImportTool.initIncrementalConstraints(ImportTool.java:316)
> 	at org.apache.sqoop.tool.ImportTool.importTable(ImportTool.java:488)
> 	at org.apache.sqoop.tool.ImportTool.run(ImportTool.java:605)
> 	at org.apache.sqoop.tool.JobTool.execJob(JobTool.java:228)
> 	at org.apache.sqoop.tool.JobTool.run(JobTool.java:283)
> 	at org.apache.sqoop.Sqoop.run(Sqoop.java:143)
> 	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
> 	at org.apache.sqoop.Sqoop.runSqoop(Sqoop.java:179)
> 	at com.cloudera.sqoop.Sqoop.runSqoop(Sqoop.java:45)
> 	at com.cloudera.sqoop.TestIncrementalImport.runJob(TestIncrementalImport.java:632)
> 	at com.cloudera.sqoop.TestIncrementalImport.runJob(TestIncrementalImport.java:616)
> 	at com.cloudera.sqoop.TestIncrementalImport.testIncrementalHiveAppendEmptyThenFull(TestIncrementalImport.java:1252)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.lang.reflect.Method.invoke(Method.java:483)
> 	at junit.framework.TestCase.runTest(TestCase.java:176)
> 	at junit.framework.TestCase.runBare(TestCase.java:141)
> 	at junit.framework.TestResult$1.protect(TestResult.java:122)
> 	at junit.framework.TestResult.runProtected(TestResult.java:142)
> 	at junit.framework.TestResult.run(TestResult.java:125)
> 	at junit.framework.TestCase.run(TestCase.java:129)
> 	at junit.framework.TestSuite.runTest(TestSuite.java:255)
> 	at junit.framework.TestSuite.run(TestSuite.java:250)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.run(JUnitTestRunner.java:535)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.launch(JUnitTestRunner.java:1182)
> 	at org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestRunner.java:1033)
> Caused by: java.sql.SQLException: Column not found: id in statement [SELECT MAX("id")
FROM "incrementalHiveAppendEmptyThenFull"]
> 	at org.hsqldb.jdbc.Util.sqlException(Unknown Source)
> 	at org.hsqldb.jdbc.jdbcStatement.fetchResult(Unknown Source)
> 	at org.hsqldb.jdbc.jdbcStatement.executeQuery(Unknown Source)
> 	at org.apache.sqoop.tool.ImportTool.getMaxColumnId(ImportTool.java:231)
> 	at org.apache.sqoop.tool.ImportTool.initIncrementalConstraints(ImportTool.java:303)
> 	... 26 more
> {code}
> It seems that the problem is that the test {{testIncrementalHiveAppendEmptyThenFull}}
is not properly specifying the column name in upper case.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message