当前位置:网站首页>spark reports an error OutOfMemory "recommended collection"
spark reports an error OutOfMemory "recommended collection"
2022-07-31 20:10:00 【The whole stack programmer webmaster】
Hello everyone, meet again, I'm your friend Quanstack Jun.
When I use spark for analysis recently, the amount of tens of millions of data does not feel much, but it runs very slowly
OutOfMemory
1. Then partition repartition before map where there is use of map
2.join will have shuffle, shuffle will also produce data overflow
3.map can also be replaced with mapPartitions and appropriately adjust the number of partitions 200 400
There are many others. That's all I use and the task can run.
What else is wrong, such as reset by peer, what is wrong with 255
The error message is not recorded
Then use the configuration file to adjust
config.set("spark.network.timeout","100000")config.set("spark.executor.heartbeatInterval","100s")config.set("spark.executor.memory", "50g")config.set("spark.shuffle.blockTransferService", "nio")Useless
Mainly a code issue...
Publisher: Full-stack programmer, please indicate the source: https://javaforall.cn/127866.htmlOriginal link: https://javaforall.cn
边栏推荐
- Performance optimization: remember a tree search interface optimization idea
- 1161. Maximum Sum of Elements in Layer: Hierarchical Traversal Application Problems
- GAC Honda Safety Experience Camp: "Danger" is the best teacher
- MATLAB程序设计与应用 2.4 MATLAB常用内部函数
- Unity 之 音频类型和编码格式介绍
- matplotlib ax bar color 设置ax bar的颜色、 透明度、label legend
- 【AcWing】第 62 场周赛 【2022.07.30】
- uni-app中的renderjs使用
- Get Douyin Video Details API
- PCB叠层设计
猜你喜欢
随机推荐
高通cDSP简单编程例子(实现查询高通cDSP使用率、签名),RK3588 npu使用率查询
leetcode 665. Non-decreasing Array 非递减数列(中等)
All-platform GPU general AI video supplementary frame super-score tutorial
移动web开发02
Carbon教程之 基本语法入门大全 (教程)
Shell script quick start to actual combat -02
10 Ways to Keep Your Interface Data Safe
【AcWing】The 62nd Weekly Match 【2022.07.30】
获取抖音视频详情 API
Get Douyin Video Details API
微信小程序的路由拦截
INeuOS industrial Internet operating system, the equipment operational business and "low code" form development tools
架构师04-应用服务间加密设计和实践
基于WPF重复造轮子,写一款数据库文档管理工具(一)
中文编码的设置与action方法的返回值
c语言解析json字符串(json对象转化为字符串)
全平台GPU通用AI视频补帧超分教程
求n以内的素数
Introduction to Audio Types and Encoding Formats in Unity
MySQL---aggregate function









