使用deploy-mode client 时候遇到的问题

在尝试使用`spark-submit`以client模式部署到YARN时,遇到了报错。设置参数包括executor内存为20GB,executor核心数为4,executor数量为3。错误日志未给出具体解决方案,目前只停留在问题记录阶段。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >


spark-submit \
--master yarn \
--deploy-mode client \
--executor-memory 20g \
--executor-cores 4 \
--num-executors 3 \
--class com.cpic.sparkdemo.downTest.downTxtSelect /cpic/cpicapp/lm_test/jav

报错log


Exception in thread "main" org.apache.spark.SparkException: Yarn application has already ended! It might have been killed or unable to launch application master.
        at org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.waitForApplication(YarnClientSchedulerBackend.scala:86)
        at org.apache.spark.scheduler.cluster.YarnClientSchedulerBackend.start(YarnClientSchedulerBackend.scala:63)
        at org.apache.spark.scheduler.TaskSchedulerImpl.start(TaskSchedulerImpl.scala:164)
        at org.apache.spark.SparkContext.<init>(SparkContext.scala:505)
        at org.apache.spark.SparkContext$.getOrCreate(SparkContext.scala:2508)
        at org.apache.spark.sql.SparkSession$Builder$$anonfun$7.a
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值