当前位置:网站首页>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
边栏推荐
- R语言survival包coxph函数构建cox回归模型、ggrisk包ggrisk函数和two_scatter函数可视化Cox回归的风险评分图、解读风险评分图、基于LIRI数据集(基因数据集)
- 中金财富公司怎么样,开户安全吗
- 如何在BNB鏈上創建BEP-20通證
- Introduction to electron Tutorial 4 - switching application topics
- Database query - course selection system
- Remote code execution in Win 11 using wpad / PAC and JScript 1
- Wave field Dao new species end up, how does usdd break the situation and stabilize the currency market?
- MFC obtains local IP (used more in network communication)
- VeraCrypt文件硬盘加密使用教程
- DTMF dual tone multi frequency signal simulation demonstration system
猜你喜欢
PHP reference manual string (7.2000 words)
@Mapperscan and @ mapper
Notes of Tang Shu's grammar class in postgraduate entrance examination English
Wave field Dao new species end up, how does usdd break the situation and stabilize the currency market?
Understanding various team patterns in scrum patterns
MySQL advanced lock - overview of MySQL locks and classification of MySQL locks: global lock (data backup), table level lock (table shared read lock, table exclusive write lock, metadata lock and inte
Redis cache penetration, cache breakdown, cache avalanche
The textarea cursor cannot be controlled by the keyboard due to antd dropdown + modal + textarea
Command - sudo
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(八)
随机推荐
LeetCode异或运算
Physical meaning of FFT: 1024 point FFT is 1024 real numbers. The actual input to FFT is 1024 complex numbers (imaginary part is 0), and the output is also 1024 complex numbers. The effective data is
使用 WPAD/PAC 和 JScript在win11中进行远程代码执行
R language uses timeroc package to calculate the multi time AUC value of survival data under competitive risk, uses Cox model and adds covariates, and R language uses the plotauccurve function of time
Why is the hexadecimal printf output of C language sometimes with 0xff and sometimes not
[2022] regard 3D target detection as sequence prediction - point2seq: detecting 3D objects as sequences
Cadence Orcad Capture 批量更改元件封装功能介绍图文教程及视频演示
MySQL数据库 - 连接查询
Openharmony open source developer growth plan, looking for new open source forces that change the world!
Efficient serial port cyclic buffer receiving processing idea and code 2
Introduction to link database function of cadence OrCAD capture CIS replacement components, graphic tutorial and video demonstration
Use test of FFT and IFFT library functions of TI DSP
Kibana reports an error server is not ready yet. Possible causes
Devops integration - environment variables and building tools of Jenkins service
[numerical prediction case] (3) LSTM time series electricity quantity prediction, with tensorflow complete code attached
Remote code execution in Win 11 using wpad / PAC and JScript
Redis distributed lock
DTMF双音多频信号仿真演示系统
山东大学软件学院项目实训-创新实训-网络安全靶场实验平台(五)
Mysql database - single table query (II)