当前位置:网站首页>解决报错: YarnScheduler: Initial job has not accepted any resources
解决报错: YarnScheduler: Initial job has not accepted any resources
2022-08-04 07:12:00 【山顶夕景】
一、问题描述
在运行某个Pyspark代码时报错如下:
Warning: Ignoring non-Spark config property: deploy-mode
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel). For SparkR, use setLogLevel(newLevel).
22/08/02 11:35:34 WARN [Thread-4] Utils: Service 'SparkUI' could not bind on port 4040. Attempting port 4041.
22/08/02 11:35:34 WARN [Thread-4] Utils: Service 'SparkUI' could not bind on port 4041. Attempting port 4042.
22/08/02 11:35:34 WARN [Thread-4] Utils: Service 'SparkUI' could not bind on port 4042. Attempting port 4043.
22/08/02 11:35:34 WARN [Thread-4] Utils: Service 'SparkUI' could not bind on port 4043. Attempting port 4044.
22/08/02 11:35:34 WARN [Thread-4] Utils: Service 'SparkUI' could not bind on port 4044. Attempting port 4045.
22/08/02 11:35:34 WARN [Thread-4] Utils: Service 'SparkUI' could not bind on port 4045. Attempting port 4046.
22/08/02 11:35:34 WARN [Thread-4] Utils: Service 'SparkUI' could not bind on port 4046. Attempting port 4047.
22/08/02 11:35:34 WARN [Thread-4] Utils: Service 'SparkUI' could not bind on port 4047. Attempting port 4048.
22/08/02 11:35:35 WARN [Thread-4] Client: Neither spark.yarn.jars nor spark.yarn.archive is set, falling back to uploading libraries under SPARK_HOME.
二、解决方案
上面是因为在yarn上执行spark作业时,其他的app占用了集群资源,导致新的job无法使用足够的资源,可以Kill掉相应的job再试试:
lsof -i:4041
lsof -i:4042
kill -9 进程id
查了下其他的说法:spark-shell里面又单独的设置了spark的context,因为spark-shell里已经有一个context对象了,所以新建创建的数据无法使用。
边栏推荐
猜你喜欢
[Paper Notes] - Low Illumination Image Enhancement - Supervised - RetinexNet - 2018-BMVC
leetcode 22.7.31(1)两数之和 (2)整数除法
拒绝碰运气,导师人品这样了解!
MySQL 8.0.29 详细安装(windows zip版)
两日总结八
[想要访问若依后台]若依框架报错401请求访问:error认证失败,无法访问系统资源
两日总结五
反射与枚举
Detailed ResNet: What problem is ResNet solving?
unity webgl报 Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON
随机推荐
form表单提交到数据库储存
错误记录:TypeError: object() takes no parameters
轻量化Backbone VGNetG成就“不做选择,全都要”轻量化主干网络
玩转TypeScript对象、对象作为参数进行函数传递、接口和内置对象[无敌态]
Secondary network security competition C module MS17-010 batch scanning
关于常用状态码4XX提示错误
TCP协议详解
从零开始单相在线式不间断电源(UPS)(硬件)
LLVM编译技术应用分析
在GBase 8c数据库后台,使用什么样的命令来对gtm、dn节点进行主备切换的操作?
MMDeploy部署实战系列【第四章】:onnx,tensorrt模型推理
关于我写的循环遍历
Use of MotionLayout
解决循环依赖import cycle not allowed的最佳解决办法
专题讲座7 计算几何 学习心得
likeshop单商户高级版企业源码发布了新的版本1.8.1
高等代数_证明_对称矩阵属于不同特征值的特征向量正交
IntelliJ新建一个类或者包的快捷键是什么?
25.时间序列预测实战
【我想要老婆】