Sqoop commit failure

简介:

线上一个Sqoop抽取Job报如下错误:

[ERROR]: Utils - Caused by: java.sql.SQLException: Communicationslink failure during commit(). Transaction resolution unknown.
[ERROR]: Utils - at com.mysql.jdbc.Connection.commit(Connection.java:2171)
[ERROR]: Utils - atorg.apache.sqoop.mapreduce.db.DBRecordReader.close(DBRecordReader.java:167)

看报错应该是Sqoop在导出数据后,处理数据到提交超过了MySQLwait_timeout(线上是2分钟);

引起这个的原因会有很多,服务器高负载,HDFS高负载,网卡跑满等等,可以通过在jdbc url里设置interactiveClient=true(线上interactive_timeout1小时)后没有再报过错;

BTW:在写blog的时候想起其实可以尝试一下将fetch-size去掉应该也可以workaround,现在再看当时处问题前一天的日志数据其实MAP其实内存已经满了;

212514243.png

后续更新:发现在出错的前一天修改过mapred-site.xml,child.opt里的最大内存改成了1G;这样看来fetch-size去掉才是最终解决方案:)结贴



本文转自MIKE老毕 51CTO博客,原文链接:http://blog.51cto.com/boylook/1299842,如需转载请自行联系原作者


相关文章
|
关系型数据库 MySQL Java
Flink作业报错:Caused by: The connector is trying to read binlog starting at GTIDs ..., but this is no longer available on the server
Flink作业报错:Caused by: The connector is trying to read binlog starting at GTIDs ..., but this is no longer available on the server
Flink作业报错:Caused by: The connector is trying to read binlog starting at GTIDs ..., but this is no longer available on the server
|
SQL 存储 资源调度
sqoop数据导出报错Job failed as tasks failed. failedMaps:1 failedReduces:0
sqoop数据导出报错Job failed as tasks failed. failedMaps:1 failedReduces:0
|
6月前
|
开发工具 git
【Git】push代码时候报错,出现fatal: unable to access xxx Recv failure: Connection was reset
【Git】push代码时候报错,出现fatal: unable to access xxx Recv failure: Connection was reset
112 0
|
10月前
|
缓存 关系型数据库
PG的synchronous_commit
PG的synchronous_commit
120 0
|
10月前
|
分布式计算 Hadoop
Call From master.hadoop/192.168.31.149 to master.hadoop:8020 failed on connection exception
学习hadoop新手易犯错误:Call From master.hadoop/192.168.31.149 to master.hadoop:8020 failed on connection exception: java.net.ConnectException: 拒绝连接; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused
392 0
|
11月前
|
Shell 开发工具 git
(极简解决)git commit 时出现:please enter the commit message for your changes
(极简解决)git commit 时出现:please enter the commit message for your changes
246 0
|
12月前
|
缓存 Oracle 关系型数据库
Oracle中控制commit的三个参数 commit_write, commit_logging和 commit_wait
Oracle中控制commit的动作有三个参数 commit_write, commit_logging和 commit_wait,按重要性分别说明如下
144 0
|
NoSQL MongoDB 开发工具
启动mongodb 报错 Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-serv...
启动mongodb 报错 Error: Failure while executing; `git clone https://github.com/Homebrew/homebrew-serv...
1108 0
|
开发工具 git
Git - [remote rejected] master - master (pre-receive hook declined)
Git - [remote rejected] master - master (pre-receive hook declined)
468 0
Git - [remote rejected] master - master (pre-receive hook declined)