当前位置:网站首页>解决报错: 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对象了,所以新建创建的数据无法使用。
边栏推荐
- 2022的七夕,奉上7个精美的表白代码,同时教大家改源码快速自用
- 此时已莺飞草长,愿世间美好与你环环相扣
- 千古第一文人苏轼的众CP
- 最近的一些杂感-20220731
- [Paper Notes] - Low Illumination Image Enhancement - Supervised - RetinexNet - 2018-BMVC
- GIS数据与CAD数据间带属性字段互相转换还原工具,解决ArcGIS等软件进行GIS数据转CAD数据无法保留属性字段问题
- Verilog“七宗罪”
- 【我想要老婆】
- 一天学会JDBC04:ResultSet的用法
- Detailed ResNet: What problem is ResNet solving?
猜你喜欢
随机推荐
登录拦截实现过程
ContrstrainLayout的动画之ConstraintSet
【我想要老婆】
设置el-table自动向下滑动(不多解释,直接代码实现)
25.时间序列预测实战
分布式计算MapReduce | Spark实验
小猫爪:AWR294x学习笔记02-AWR294x之DPM&IPC
Distributed Computing Experiment 3 PRC-based Book Information Management System
【并发】概念
安装GBase 8c数据库的时候,报错显示“Resource:gbase8c already in use”,这怎么处理呢?
中职网络安全竞赛B模块新题
adb无法桥接夜神模拟器
简析强制缓存和协商缓存
函数柯里化详解
轻量化Backbone VGNetG成就“不做选择,全都要”轻量化主干网络
10个程序员可以接私活的平台和一些建议,赚麻...
Transform 相对位置变换,坐标系转换
在线问题反馈模块实战(十八):实现excel台账文件记录批量导入功能
Use of MotionLayout
leetcode 22.8.1 二进制加法









