当前位置:网站首页>解决报错: 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对象了,所以新建创建的数据无法使用。
边栏推荐
猜你喜欢

The national vocational skills contest competition of network security emergency response

分布式计算实验4 随机信号分析系统

DropBlock: Regularization method and reproduction code for convolutional layers

数据特征预处理——缺失值的查看方式及处理
redis stream 实现消息队列

fanuc机器人IO分配报警信号分配无效

Detailed ResNet: What problem is ResNet solving?

两日总结六

七夕情人节:中英文祝福短信送给你

CSRF和SSRF漏洞
随机推荐
LeetCode每日五题01:两数之和 (均1200题)
【深度学习实践(二)】上手手写数字识别
中职网络安全竞赛C模块MS17-010批量扫描
数据特征预处理——缺失值的查看方式及处理
学校申请链接
FCN - the originator of semantic segmentation (based on tf-Kersa reproduction code)
力扣每日一题-第47天-15. 三数之和
RHCSA第五天
函数柯里化详解
给Unity Behavior Designer(Unity行为树) 的Can See Object 画圆锥辅助图
unittest使用简述
有人试过用NPGsql驱动连接openGauss开发应用的吗?
CSRF和SSRF漏洞
分布式计算实验1 负载均衡
DropBlock: Regularization method and reproduction code for convolutional layers
高等代数_证明_对称矩阵一定能够相似对角化
【字符串】最小表示法
New Questions in Module B of Secondary Vocational Network Security Competition
两日总结七
【剑指Offer】二分法例题