将数据从MySQL加载到HDFS时出现Sqoop错误

时间:2015-04-21 19:30:29

标签: hadoop sqoop

我正在运行一个sqoop来将数据从MySQL加载到HDFS。 这是代码:

sqoop import \
--connect jdbc:mysql://test.xxx.net/LIVE \
--username pitt \
--password abcd \
--query "select * from tblMfg where 1=1 and \$CONDITIONS" \
--target-dir /user/pitt/tblMfg \
--fields-terminated-by '\t' \
--null-string '' \
--null-non-string '' \
-m 1

关于tblMfg:

Value of dateCreate column: 0000-00-00 00:00:00

Data type of dateCreate column: timestamp 

但是当我运行sqoop时,我收到了这个错误:

java.io.IOException: SQLException in nextKeyValue

0000-00-00 00:00:00�� 08:06:05��05����015-04-20 08:06:05�����5��5��' can not be represented as java.sql.Timestamp

有人可以解释一下这里发生了什么吗?

0 个答案:

没有答案