当前位置:网站首页>解决报错: 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对象了,所以新建创建的数据无法使用。
边栏推荐
猜你喜欢
随机推荐
[想要访问若依后台]若依框架报错401请求访问:error认证失败,无法访问系统资源
unity 循环选择器
RT-Thread Studio学习(十二)W25Q128(SPI)的读写
微信小程序实现活动倒计时
简析强制缓存和协商缓存
最近的一些杂感-20220731
GBase 8c中怎么查询数据库配置参数,例如datestyle。使用什么函数或者语法呢?
The sorting algorithm including selection, bubble, and insertion
[Paper Notes] - Low Illumination Image Enhancement - Supervised - RetinexNet - 2018-BMVC
从零开始单相在线式不间断电源(UPS)(硬件)
IntelliJ新建一个类或者包的快捷键是什么?
中职网络安全竞赛C模块MS17-010批量扫描
likeshop外卖点餐系统开源啦100%开源无加密
leetcode 22.8.1 二进制加法
西门子PLC1200与fanuc机器人进行profibus通讯
Transform 相对位置变换,坐标系转换
data:image/jpg;base64格式数据转化为图片
一天学会JDBC04:ResultSet的用法
关于常用状态码4XX提示错误
RT-Thread Studio学习(十一)IIC