当前位置:网站首页>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
边栏推荐
- [TypeScript] In-depth study of TypeScript type operations
- adb shell 报错error: device unauthorized
- Last write wins (discards concurrent writes)
- Summary of the implementation method of string inversion "recommended collection"
- Kotlin coroutines: continuation, continuation interceptor, scheduler
- 牛客网刷题(二)
- 九齐ny3p系列语音芯片替代国产方案KT148A性价比更高420秒长度
- Mariabackup实现Mariadb 10.3的增量数据备份
- go mode tidy出现报错go warning “all“ matched no packages
- How C programs run 01 - the composition of ordinary executable files
猜你喜欢
Huawei mobile phone one-click to open "maintenance mode" to hide all data and make mobile phone privacy more secure
九齐ny3p系列语音芯片替代国产方案KT148A性价比更高420秒长度
【TypeScript】深入学习TypeScript类型操作
flowable工作流所有业务概念
2022 Android interview summary (with interview questions | source code | interview materials)
Bika LIMS 开源LIMS集—— SENAITE的使用(检测流程)
Flex布局详解
自动化测试—web自动化—selenium初识
华为手机一键开启“维修模式”隐藏所有数据,让手机隐私更加安全
[pytorch] 1.7 pytorch and numpy, tensor and array conversion
随机推荐
基于WPF重复造轮子,写一款数据库文档管理工具(一)
【luogu P8326】Fliper (Graph Theory) (Construction) (Eulerian Circuit)
2022年必读的12本机器学习书籍推荐
iNeuOS工业互联网操作系统,设备运维业务和“低代码”表单开发工具
Huawei's top engineers lasted nine years "anecdotal stories network protocol" PDF document summary, is too strong
A common method and the use of selenium
二分查找的细节坑
flyway的快速入门教程
【源码解析】BeanFactory和FactoryBean
AcWing 1282. 搜索关键词 题解((AC自动机)Trie+KMP)+bfs)
After Effects 教程,如何在 After Effects 中调整过度曝光的快照?
The new telecom "routine", my dad was tricked!
Anaconda如何顺利安装CV2
LevelSequence源码分析
Flutter gets the height of the status bar statusbar
研发过程中的文档管理与工具
EF Core 2.2中将ORM框架生成的SQL语句输出到控制台
JS基础小练习
多主复制下处理写冲突(1)-同步与异步冲突检测及避免冲突
flowable工作流所有业务概念