当前位置:网站首页>spark报错OutOfMemory「建议收藏」
spark报错OutOfMemory「建议收藏」
2022-07-31 16:53:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
最近在使用spark进行分析的时候 几千万的数据量感觉不多 但是跑起来非常慢
内存溢出OutOfMemory
1.然后在有使用map的地方 在map之前进行分区repartition
2.join会有shuffle产生 shuffle也会产生数据溢出
3.map也可以换成 mapPartitions 并且适当调整分区数 200 400
其他的还有很多 我用的就这些 然后任务可以跑出来。
还有什么错误 比如 reset by peer还有什么255的错误
报错信息没有记录
然后使用配置文件去调整
config.set("spark.network.timeout","100000")
config.set("spark.executor.heartbeatInterval","100s")
config.set("spark.executor.memory", "50g")
config.set("spark.shuffle.blockTransferService", "nio")没用
主要是代码问题。。。
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/127866.html原文链接:https://javaforall.cn
边栏推荐
- [7.28] Code Source - [Fence Painting] [Appropriate Pairs (Data Enhanced Version)]
- 你辛辛苦苦写的文章可能不是你的原创
- Anaconda如何顺利安装CV2
- 使用互相关进行音频对齐
- Masterless Replication System (3)-Limitations of Quorum Consistency
- useragent在线查找
- TestCafe之如何进行调试
- Huawei mobile phone one-click to open "maintenance mode" to hide all data and make mobile phone privacy more secure
- The new telecom "routine", my dad was tricked!
- 【愚公系列】2022年07月 Go教学课程 022-Go容器之字典
猜你喜欢
随机推荐
2022 Android interview summary (with interview questions | source code | interview materials)
Implementing distributed locks based on Redis (SETNX), case: Solving oversold orders under high concurrency
21.支持向量机—核函数的介绍
Summary of the implementation method of string inversion "recommended collection"
这位985教授火了!当了10年博导,竟无一博士毕业!
Flex布局详解
你辛辛苦苦写的文章可能不是你的原创
The arm button controls the flashing of the led light (embedded button experiment report)
华为顶级工程师历时9年总结的“趣谈网络协议”PDF文档,太强了
Golang 小数操作之判断几位小数点与四舍五入
Flutter 获取状态栏statusbar的高度
Golang——从入门到放弃
TestCafe之如何进行调试
宁波大学NBU IT项目管理期末考试知识点整理
Mariabackup implements incremental data backup for Mariadb 10.3
【码蹄集新手村600题】不通过字符数组来合并俩个数字
Stuck in sill idealTree buildDeps during npm installation, npm installation is slow, npm installation is stuck in one place
多主复制下处理写冲突(1)-同步与异步冲突检测及避免冲突
Handling write conflicts under multi-master replication (3) - Convergence to a consistent state and custom conflict resolution logic
新型电信“套路”,我爸中招了!


![[TypeScript]OOP](/img/d7/b3175ab538906ac1b658a9f361ba44.png)






