sqoop-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "haipengfly (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SQOOP-1304) sqoop export hdfs files data 'timestamp' value to oracle date column type
Date Sat, 01 Aug 2015 07:14:04 GMT

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

haipengfly commented on SQOOP-1304:
-----------------------------------

hadoop-2.4.0.2.1.2.0-402
sqoop-1.4.4.2.1.2.0-402

hdfs:'2015-08-01 15:10:25'  export to oracle of column type is 'date' : failed
but '2015-08-01' can succeed

> sqoop export hdfs files data 'timestamp' value to oracle date column type
> -------------------------------------------------------------------------
>
>                 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.3.4#6332)

Mime
View raw message