当前位置:网站首页>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
边栏推荐
- 牛客 HJ19 简单错误记录
- 【码蹄集新手村600题】通向公式与程序相结合
- Graham‘s Scan法求解凸包问题
- How Redis handles concurrent access
- Design and Implementation of Compiler Based on C Language
- 你辛辛苦苦写的文章可能不是你的原创
- [Source code analysis] BeanFactory and FactoryBean
- 利用PHP开发具有注册、登陆、文件上传、发布动态功能的网站
- 无主复制系统(3)-Quorum一致性的局限性
- Graham's Scan method for solving convex hull problems
猜你喜欢

基于WPF重复造轮子,写一款数据库文档管理工具(一)

Introduction of Jerry voice chip ic toy chip ic_AD14NAD15N full series development

Graham‘s Scan法求解凸包问题

AcWing 1282. Search Keyword Problem Solution ((AC Automata) Trie+KMP)+bfs)

九齐ny3p系列语音芯片替代国产方案KT148A性价比更高420秒长度

2022年整理LeetCode最新刷题攻略分享(附中文详细题解)

Bika LIMS 开源LIMS集—— SENAITE的使用(检测流程)

ECCV 2022 华科&ETH提出首个用于伪装实例分割的一阶段Transformer的框架OSFormer!代码已开源!...

go基础部分学习笔记记录

Three aspects of Ali: How to solve the problem of MQ message loss, duplication and backlog?
随机推荐
2022 Android interview summary (with interview questions | source code | interview materials)
SHELL内外置命令
Graham‘s Scan法求解凸包问题
Kotlin coroutines: continuation, continuation interceptor, scheduler
牛客网刷题(三)
go记录之——slice
利用PHP开发具有注册、登陆、文件上传、发布动态功能的网站
Golang——从入门到放弃
最新神作!阿里巴巴刚出炉的面试参考指南(泰山版),我直接狂刷29天
Summary of the implementation method of string inversion "recommended collection"
Baidu cloud web speed playback (is there any website available)
go mode tidy出现报错go warning “all“ matched no packages
ECCV 2022 华科&ETH提出首个用于伪装实例分割的一阶段Transformer的框架OSFormer!代码已开源!...
如何识别假爬虫?
[Source code analysis] BeanFactory and FactoryBean
Intelligent bin (9) - vibration sensor (raspberries pie pico implementation)
Flutter gets the height of the status bar statusbar
【pytorch】1.7 pytorch与numpy,tensor与array的转换
Masterless replication system (1) - write DB when node fails
AcWing 1282. 搜索关键词 题解((AC自动机)Trie+KMP)+bfs)