java.io.IOException

tip

MySQL doesn't support some types of characters (such as emojis) with the utf8 encoding. You need to be on MySQL 5.5+ and force utf8mb4 (everywhere, client and server). You can do this sending the query "SET NAMES utf8mb4". Check this https://goo.gl/3E2qzg

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • SQLException in nextKeyValue
    via by Syed Akram,
  • SQLException in nextKeyValue
    via by Syed Akram,
  • SQLException during sqoop import
    via by Syed Akram,
  • SQLException during sqoop import
    via by Syed Akram,
  • Datei löschen
    via GitHub by herrherrmann
    ,
    • 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:533) 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:144) at org.apache.sqoop.mapreduce.AutoProgressMapper.run(AutoProgressMapper.java:64) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:764) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:340) at org.apache.hadoop.mapred.YarnChild$2.run(YarnChild.java:168) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1614) at org.apache.hadoop.mapred.YarnChild.main(YarnChild.java:163) Caused by: java.sql.SQLException: Column Index out of range, 13 > 12. at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1074) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:988) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:974) at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:919) at com.mysql.jdbc.ResultSetImpl.checkColumnBounds(ResultSetImpl.java:830) at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:2957) at com.mysql.jdbc.ResultSetImpl.getLong(ResultSetImpl.java:2946) at org.apache.sqoop.lib.JdbcWritableBridge.readLong(JdbcWritableBridge.java:62) at com.cloudera.sqoop.lib.JdbcWritableBridge.readLong(JdbcWritableBridge.java:57) at QueryResult.readFields(QueryResult.java:246)

    Users with the same issue

    ivanszkypeterivanszkypeter
    470 times, last one,
    linxiaolonglinxiaolong
    1 times, last one,
    rocdayrocday
    1 times, last one,
    slashslash
    1 times, last one,
    zbalintzbalint
    4 times, last one,
    145 more bugmates