sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sowmya Ramesh" <sram...@hortonworks.com>
Subject Review Request 41998: Execution of saved job which has schema argument fails
Date Wed, 06 Jan 2016 23:29:10 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/41998/
-----------------------------------------------------------

Review request for Sqoop.


Bugs: SQOOP-2779
    https://issues.apache.org/jira/browse/SQOOP-2779


Repository: sqoop-trunk


Description
-------

PROBLEM:
When running sqoop job using sqoop metastore:
sqoop job --create 'globaldata.r.emaildomain' --meta-connect 'jdbc:hsqldb:hsql://da0shal203.match.corp:16000/sqoop'
--import --connect 'jdbc:sqlserver://MAREPORT\MAREPORT01;database=GlobalData;user=hdpreader;password=xxx'
--table EmailDomain --target-dir /hive/globaldatastaging/emaildomain --split-by 'DomainID'
--num-mappers 8 --columns 'DomainID, EmailDomain, InsertDate, EmailDomainGroupID, EmailDomainGroup'
--hive-drop-import-delims --fields-terminated-by '\001' --lines-terminated-by '\n' --null-string
'
N' --null-non-string '
N' – --schema lookup
It is throwing the error that it cannot find the table when executing the job:
15/08/24 15:21:18 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM EmailDomain
AS t WHERE 1=0 
15/08/24 15:21:18 ERROR manager.SqlManager: Error executing statement: com.microsoft.sqlserver.jdbc.SQLServerException:
Invalid object name 'EmailDomain'.


Diffs
-----

  src/java/org/apache/sqoop/tool/JobTool.java 4359058 
  src/test/com/cloudera/sqoop/metastore/TestSavedJobs.java d100c2c 

Diff: https://reviews.apache.org/r/41998/diff/


Testing
-------

Manual testing and added a unit test case to verify extra arguments get persisted and gets
loaded correctly from Sqoop metastore.


Thanks,

Sowmya Ramesh


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message