当前位置:网站首页>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
边栏推荐
- Project training of Software College of Shandong University - Innovation Training - network security shooting range experimental platform (6)
- 如何在BNB链上创建BEP-20通证
- 数据库查询 - 选课系统
- 【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
- Redis distributed lock
- Lpc1768 optimization comparison of delay time and different levels
- 使用 WPAD/PAC 和 JScript在win11中进行远程代码执行3
- Mysql database backup scheme
- NC basic usage 3
- Computing the intersection of two planes in PCL point cloud processing (51)
猜你喜欢
LeetCode动态规划训练营(1~5天)
【数值预测案例】(3) LSTM 时间序列电量预测,附Tensorflow完整代码
Five minutes to show you what JWT is
Distinction between pointer array and array pointer
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
selenium. common. exceptions. WebDriverException: Message: ‘chromedriver‘ executable needs to be in PAT
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
PCL点云处理之计算两平面交线(五十一)
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
随机推荐
WordPress插件:WP-China-Yes解决国内访问官网慢的方法
【webrtc】Add x264 encoder for CEF/Chromium
Introduction to electron tutorial 3 - process communication
数据库查询 - 选课系统
【webrtc】Add x264 encoder for CEF/Chromium
微信中金财富高端专区安全吗,证券如何开户呢
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
Comment créer un pass BEP - 20 sur la chaîne BNB
基于pytorch搭建GoogleNet神经网络用于花类识别
Mysql database - connection query
CVPR 2022 | querydet: use cascaded sparse query to accelerate small target detection under high resolution
SRS deployment
R语言使用econocharts包创建微观经济或宏观经济图、indifference函数可视化无差异曲线、自定义计算交叉点、自定义配置indifference函数的参数丰富可视化效果
Distinction between pointer array and array pointer
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
Command - sudo
CVPR 2022 | QueryDet:使用级联稀疏query加速高分辨率下的小目标检测
Introduction to link database function of cadence OrCAD capture CIS replacement components, graphic tutorial and video demonstration
中金财富公司怎么样,开户安全吗
Wave field Dao new species end up, how does usdd break the situation and stabilize the currency market?