troubleshooting-sqoop mysql导入hive 报:GC overhead limit exceeded

Halting due to Out Of Memory Error...
18/09/13 21:42:17 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000001_0, Status : FAILED
Error: Java heap space
18/09/13 21:43:26 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000000_1, Status : FAILED
Error: Java heap space
18/09/13 21:44:04 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000001_1, Status : FAILED
Error: GC overhead limit exceeded
18/09/13 21:45:07 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000000_2, Status : FAILED
Error: Java heap space
18/09/13 21:45:22 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000001_2, Status : FAILED
Error: GC overhead limit exceeded

 

解决办法

mysql connection连接字符串加上:
?dontTrackOpenResources=true&defaultFetchSize=1000&useCursorFetch=true
参考:
https://stackoverflow.com/questions/26484873/cloudera-settings-sqoop-import-gives-java-heap-space-error-and-gc-overhead-limit

异常日志

18/09/13 21:41:49 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000000_0, Status : FAILED
[2018-09-13 21:41:48.551]Exception from container-launch.
Container id: container_1536756558194_0031_01_000002
Exit code: 255
Shell output: main : command provided 1
main : run as user is chenweidong
main : requested yarn user is chenweidong
Getting exit code file...
Creating script paths...
Writing pid file...
Writing to tmp file /data/yarn/nm/nmPrivate/application_1536756558194_0031/container_1536756558194_0031_01_000002/container_1536756558194_0031_01_000002.pid.tmp
Writing to cgroup task files...
Creating local dirs...
Launching container...
Getting exit code file...
Creating script paths...

[2018-09-13 21:41:48.553]Container exited with a non-zero exit code 255. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
Thu Sep 13 21:40:41 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Halting due to Out Of Memory Error...

[2018-09-13 21:41:48.554]Container exited with a non-zero exit code 255. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
Thu Sep 13 21:40:41 CST 2018 WARN: Establishing SSL connection without server's identity verification is not recommended. According to MySQL 5.5.45+, 5.6.26+ and 5.7.6+ requirements SSL connection must be established by default if explicit option isn't set. For compliance with existing applications not using SSL the verifyServerCertificate property is set to 'false'. You need either to explicitly disable SSL by setting useSSL=false, or set useSSL=true and provide truststore for server certificate verification.
Halting due to Out Of Memory Error...
18/09/13 21:42:17 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000001_0, Status : FAILED
Error: Java heap space
18/09/13 21:43:26 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000000_1, Status : FAILED
Error: Java heap space
18/09/13 21:44:04 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000001_1, Status : FAILED
Error: GC overhead limit exceeded
18/09/13 21:45:07 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000000_2, Status : FAILED
Error: Java heap space
18/09/13 21:45:22 INFO mapreduce.Job: Task Id : attempt_1536756558194_0031_m_000001_2, Status : FAILED
Error: GC overhead limit exceeded
18/09/13 21:46:37 INFO mapreduce.Job: map 100% reduce 0%
18/09/13 21:46:37 INFO mapreduce.Job: Job job_1536756558194_0031 failed with state FAILED due to: Task failed task_1536756558194_0031_m_000001
Job failed as tasks failed. failedMaps:1 failedReduces:0 killedMaps:0 killedReduces: 0

作者:阿東哥©
欢迎任何形式的转载,但请务必注明出处。
限于本人水平,如果文章和代码有表述不当之处,还请不吝赐教。

posted @   阿東哥©  阅读(2231)  评论(0编辑  收藏  举报
编辑推荐:
· AI与.NET技术实操系列:基于图像分类模型对图像进行分类
· go语言实现终端里的倒计时
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
阅读排行:
· 25岁的心里话
· 闲置电脑爆改个人服务器(超详细) #公网映射 #Vmware虚拟网络编辑器
· 基于 Docker 搭建 FRP 内网穿透开源项目(很简单哒)
· 零经验选手,Compose 一天开发一款小游戏!
· AI Agent开发,如何调用三方的API Function,是通过提示词来发起调用的吗
点击右上角即可分享
微信分享提示