当前位置:网站首页>解决报错: 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对象了,所以新建创建的数据无法使用。
边栏推荐
猜你喜欢
随机推荐
babylon 里面加gltf 模型
C# 实用的第三方库
unittest使用简述
无人驾驶运用了什么技术,无人驾驶技术是
CAN协议详解-01
Detailed ResNet: What problem is ResNet solving?
CSDN21天学习挑战赛——day1 正则表达式大总结
MotionLayout的使用
使用requests post请求爬取申万一级行业指数行情
npm包发布与迭代
详解CAN总线:常用CAN连接器的使用方法
在GBase 8c数据库后台,使用什么样的命令来对gtm、dn节点进行主备切换的操作?
一天学会JDBC03:Statement的用法
给Unity Behavior Designer(Unity行为树) 的Can See Object 画圆锥辅助图
高等代数_证明_对称矩阵属于不同特征值的特征向量正交
两日总结八
DropBlock: Regularization method and reproduction code for convolutional layers
字节跳动岗位薪酬体系曝光,看完我真的酸了...
使用腾讯云发送短信 ---- 手把手教你搞定所有步骤
有人试过用NPGsql驱动连接openGauss开发应用的吗?