当前位置:网站首页>An error is reported when sqoop imports data from Mysql to HDFS: sqlexception in nextkeyvalue
An error is reported when sqoop imports data from Mysql to HDFS: sqlexception in nextkeyvalue
2022-04-23 20:12:00 【My brother is not strong enough to fight】
sqoop from mysql Import data to hdfs Report errors , as follows :
Error: java.io.IOException: SQLException in nextKeyValue
at org.apache.sqoop.mapreduce.db.DBRecordReader.nextKeyValue(DBRecordReader.java:277)
at org.apache.hadoop.mapred.MapTask$NewTrackingRecordReader.nextKeyValue(MapTask.java:568)
at org.apache.hadoop.mapreduce.task.MapContextImpl.nextKeyValue(MapContextImpl.java:80)
at org.apache.hadoop.mapreduce.lib.map.WrappedMapper$Context.nextKeyValue(WrappedMapper.java:91)
at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:145)
at org.apache.sqoop.mapreduce.AutoProgressMapper.run(AutoProgressMapper.java:64)
at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:799)
at org.apache.hadoop.mapred.MapTask.run(MapTask.java:347)
at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:174)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1729)
at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:168)
Caused by: java.sql.SQLException: YEAR
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:129)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:97)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:89)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:63)
at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:73)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:85)
at com.mysql.cj.jdbc.result.ResultSetImpl.getDate(ResultSetImpl.java:751)
at org.apache.sqoop.lib.JdbcWritableBridge.readDate(JdbcWritableBridge.java:115)
at com.cloudera.sqoop.lib.JdbcWritableBridge.readDate(JdbcWritableBridge.java:87)
at QueryResult.readFields(QueryResult.java:701)
at org.apache.sqoop.mapreduce.db.DBRecordReader.nextKeyValue(DBRecordReader.java:244)
... 12 more
Caused by: com.mysql.cj.exceptions.WrongArgumentException: YEAR
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:61)
at com.mysql.cj.exceptions.ExceptionFactory.createException(ExceptionFactory.java:105)
at com.mysql.cj.result.SqlDateValueFactory.localCreateFromDate(SqlDateValueFactory.java:85)
at com.mysql.cj.result.SqlDateValueFactory.localCreateFromDate(SqlDateValueFactory.java:50)
at com.mysql.cj.result.AbstractDateTimeValueFactory.createFromDate(AbstractDateTimeValueFactory.java:67)
at com.mysql.cj.protocol.a.MysqlTextValueDecoder.decodeDate(MysqlTextValueDecoder.java:73)
at com.mysql.cj.protocol.result.AbstractResultsetRow.decodeAndCreateReturnValue(AbstractResultsetRow.java:90)
at com.mysql.cj.protocol.result.AbstractResultsetRow.getValueFromBytes(AbstractResultsetRow.java:241)
at com.mysql.cj.protocol.a.result.TextBufferRow.getValue(TextBufferRow.java:132)
... 17 more
Caused by: java.lang.IllegalArgumentException: YEAR
at java.util.GregorianCalendar.computeTime(GregorianCalendar.java:2648)
at java.util.Calendar.updateTime(Calendar.java:3393)
at java.util.Calendar.getTimeInMillis(Calendar.java:1782)
at com.mysql.cj.result.SqlDateValueFactory.localCreateFromDate(SqlDateValueFactory.java:82)
... 23 more
Finally find the reason is : Birthday date Illegal in field
版权声明
本文为[My brother is not strong enough to fight]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204210556213915.html
边栏推荐
- Mysql database - single table query (I)
- NC basic usage 4
- Database query - course selection system
- Unity创建超写实三维场景的一般步骤
- Mysql database - single table query (III)
- 使用 WPAD/PAC 和 JScript在win11中进行远程代码执行1
- C6748 software simulation and hardware test - with detailed FFT hardware measurement time
- Mysql database backup scheme
- Unity 模型整体更改材质
- LeetCode动态规划训练营(1~5天)
猜你喜欢
如何在BNB鏈上創建BEP-20通證
Understanding various team patterns in scrum patterns
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
php参考手册String(7.2千字)
Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (6)
CVPR 2022 | querydet: use cascaded sparse query to accelerate small target detection under high resolution
【文本分类案例】(4) RNN、LSTM 电影评价倾向分类,附TensorFlow完整代码
Distinction between pointer array and array pointer
Command - sudo
Mysql database backup scheme
随机推荐
MySQL 进阶 锁 -- MySQL锁概述、MySQL锁的分类:全局锁(数据备份)、表级锁(表共享读锁、表独占写锁、元数据锁、意向锁)、行级锁(行锁、间隙锁、临键锁)
波场DAO新物种下场,USDD如何破局稳定币市场?
[target tracking] pedestrian attitude recognition based on frame difference method combined with Kalman filter, with matlab code
redis 分布式锁
数据库查询 - 选课系统
R language survival package coxph function to build Cox regression model, ggrisk package ggrisk function and two_ Scatter function visualizes the risk score map of Cox regression, interprets the risk
Why is the hexadecimal printf output of C language sometimes with 0xff and sometimes not
Design of warehouse management database system
如何在BNB鏈上創建BEP-20通證
Change the material of unity model as a whole
Kubernetes introduction to mastery - ktconnect (full name: kubernetes toolkit connect) is a small tool based on kubernetes environment to improve the efficiency of local test joint debugging.
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
Kubernetes entry to mastery - bare metal loadbalance 80 443 port exposure precautions
记录:调用mapper报空指针;<foreach>不去重的用法;
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
R language ggplot2 visual facet_wrap, and use the lineheight parameter to customize the height of the facet icon tab (gray label bar)
Mysql database - single table query (II)
Shanda Wangan shooting range experimental platform project - personal record (IV)
Cadence Orcad Capture 批量更改元件封装功能介绍图文教程及视频演示
nc基础用法2