开发者社区> 问答> 正文

sqoop从mysql数据库导入hdfs,当数据多的话,报错?报错

The last packet successfully received from the server was 203,695 milliseconds ago.  The last packet sent successfully to the server was 203,807 milliseconds ago.
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
        at com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
        at com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
        at com.mysql.jdbc.MysqlIO.nextRowFast(MysqlIO.java:1651)
        at com.mysql.jdbc.MysqlIO.nextRow(MysqlIO.java:1407)
        at com.mysql.jdbc.MysqlIO.readSingleRowSet(MysqlIO.java:2861)
        at com.mysql.jdbc.MysqlIO.getResultSet(MysqlIO.java:474)
        at com.mysql.jdbc.MysqlIO.readResultsForQueryOrUpdate(MysqlIO.java:2554)
        at com.mysql.jdbc.MysqlIO.readAllResults(MysqlIO.java:1755)
        at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2165)
        at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2648)
        at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:2086)
        at com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:2237)
        at org.apache.sqoop.mapreduce.db.DBRecordReader.executeQuery(DBRecordReader.java:111)
        at org.apache.sqoop.mapreduce.db.DBRecordReader.nextKeyValue(DBRecordReader.java:235)
        ... 12 more

展开
收起
爱吃鱼的程序员 2020-06-10 10:23:57 698 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    bbosshadoophdfs大数据抽取工具 

    2020-06-10 10:24:15
    赞同 展开评论 打赏
问答排行榜
最热
最新

相关电子书

更多
搭建电商项目架构连接MySQL 立即下载
搭建4层电商项目架构,实战连接MySQL 立即下载
PolarDB MySQL引擎重磅功能及产品能力盛大发布 立即下载

相关镜像