Jianfeng Xu created SQOOP-1304:
----------------------------------
Summary: sqoop export hdfs files data to oracle
Key: SQOOP-1304
URL: https://issues.apache.org/jira/browse/SQOOP-1304
Project: Sqoop
Issue Type: Bug
Affects Versions: 1.3.0
Environment: hadoop-0.20.2-cdh3u0
sqoop-1.3.0-cdh3u6
Reporter: Jianfeng Xu
I want to export the file data in the hdfs to Oracle rdbms. But sqoop can't do
well to export '2014-04-15 11:41:31' datetime to Oracle column type DATE.
Because it use the java.sql.Date class, not java.sql.Timestamp class to parse
data.
Error is:
Caused by: java.lang.IllegalArgumentException
at java.sql.Date.valueOf(Date.java:138)
at
TB_1010_LOGDATA_PROCESSED.__loadFromFields(TB_1010_LOGDATA_PROCESSED.java:1275)
at TB_1010_LOGDATA_PROCESSED.parse(TB_1010_LOGDATA_PROCESSED.java:1227)
at
com.cloudera.sqoop.mapreduce.TextExportMapper.map(TextExportMapper.java:87)
So can i set a argument to change it for the 'sqoop export' command? Or another
useful way to solve the error. Thanks.
--
This message was sent by Atlassian JIRA
(v6.2#6252)