sqoop迁移数据提示如下

Caused by: java.lang.RuntimeException: Can't parse input data: '71a9bd3540d717ce9aaf2f41164e25a4'
	at cx_company_detail_dev_cx.__loadFromFields(cx_company_detail_dev_cx.java:2129)
	at cx_company_detail_dev_cx.parse(cx_company_detail_dev_cx.java:1882)
	at org.apache.sqoop.mapreduce.TextExportMapper.map(TextExportMapper.java:89)
	... 10 more
Caused by: java.lang.NumberFormatException: For input string: "71a9bd3540d717ce9aaf2f41164e25a4"
	at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
	at java.lang.Long.parseLong(Long.java:589)
	at java.lang.Long.valueOf(Long.java:803)
	at cx_company_detail_dev_cx.__loadFromFields(cx_company_detail_dev_cx.java:2061)
	... 12 more

2019-06-17 11:25:46,762 INFO [IPC Server handler 0 on 37540] org.apache.hadoop.mapred.TaskAttemptListenerImpl: Diagnostics report from attempt_1558339002952_1885_m_000000_0: Error: java.io.IOException: Can't export data, please check failed map task logs
	at org.apache.sqoop.mapreduce.TextExportMapper.map(TextExportMapper.java:122)

解决办法:查看mysql建表的类型 当时定义成了int 改成varchar即可

你可能感兴趣的:(sqoop_bug,Sqoop)