Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] [K8s] Spark on k8s ERROR <org.apache.spark.SparkException: Must specify the executor container image> #15535

Closed
2 of 3 tasks
hugh018 opened this issue Jan 30, 2024 · 3 comments
Labels
Milestone

Comments

@hugh018
Copy link

hugh018 commented Jan 30, 2024

Search before asking

  • I had searched in the issues and found no similar issues.

What happened

Spark 3.2.2
dolphinscheduler 3.2.0
Run Spark on K8s task, ERROR :
2513 [kubernetes-executor-snapshots-subscribers-0] WARN org.apache.spark.scheduler.cluster.k8s.ExecutorPodsSnapshotsStoreImpl - Exception when notifying snapshot subscriber.
org.apache.spark.SparkException: Must specify the executor container image
at org.apache.spark.deploy.k8s.features.BasicExecutorFeatureStep.$anonfun$executorContainerImage$1(BasicExecutorFeatureStep.scala:44)
at scala.Option.getOrElse(Option.scala:189)
at org.apache.spark.deploy.k8s.features.BasicExecutorFeatureStep.(BasicExecutorFeatureStep.scala:44)
at org.apache.spark.scheduler.cluster.k8s.KubernetesExecutorBuilder.buildFromFeatures(KubernetesExecutorBuilder.scala:50)
at org.apache.spark.scheduler.cluster.k8s.ExecutorPodsAllocator.$anonfun$requestNewExecutors$1(ExecutorPodsAllocator.scala:391)
at scala.collection.immutable.Range.foreach$mVc$sp(Range.scala:158)
at org.apache.spark.scheduler.cluster.k8s.ExecutorPodsAllocator.requestNewExecutors(ExecutorPodsAllocator.scala:382)
at org.apache.spark.scheduler.cluster.k8s.ExecutorPodsAllocator.$anonfun$onNewSnapshots$36(ExecutorPodsAllocator.scala:346)
at org.apache.spark.scheduler.cluster.k8s.ExecutorPodsAllocator.$anonfun$onNewSnapshots$36$adapted(ExecutorPodsAllocator.scala:339)
at scala.collection.mutable.ResizableArray.foreach(ResizableArray.scala:62)
at scala.collection.mutable.ResizableArray.foreach$(ResizableArray.scala:55)
at scala.collection.mutable.ArrayBuffer.foreach(ArrayBuffer.scala:49)
at org.apache.spark.scheduler.cluster.k8s.ExecutorPodsAllocator.onNewSnapshots(ExecutorPodsAllocator.scala:339)
at org.apache.spark.scheduler.cluster.k8s.ExecutorPodsAllocator.$anonfun$start$3(ExecutorPodsAllocator.scala:117)
at org.apache.spark.scheduler.cluster.k8s.ExecutorPodsAllocator.$anonfun$start$3$adapted(ExecutorPodsAllocator.scala:117)
at

What you expected to happen

org.apache.spark.SparkException: Must specify the executor container image
Frontend can select container image location

How to reproduce

Spark 3.2.2
dolphinscheduler 3.2.0
Run Spark on K8s task

Anything else

No response

Version

3.2.x

Are you willing to submit PR?

  • Yes I am willing to submit a PR!

Code of Conduct

@hugh018 hugh018 added bug Something isn't working Waiting for reply Waiting for reply labels Jan 30, 2024
@zhongjiajie zhongjiajie added this to the 3.2.1 milestone Jan 30, 2024
@fuchanghai fuchanghai added discussion discussion and removed bug Something isn't working Waiting for reply Waiting for reply labels Feb 18, 2024
@fuchanghai
Copy link
Member

hi @hugh018 i don't think Frontend can select container image location is a good idea ,maybe you can modify script add parameter spark.kubernetes.container.imageto fix it .because the k8s task plugin is not specifically designed to handle spark tasks. maybe we can add a spark on k8s task plugin cc @zhongjiajie @Gallardot @EricGao888 @rickchengx WDYT?

Copy link

This issue has been automatically marked as stale because it has not had recent activity for 30 days. It will be closed in next 7 days if no further activity occurs.

@github-actions github-actions bot added the Stale label Mar 20, 2024
Copy link

This issue has been closed because it has not received response for too long time. You could reopen it if you encountered similar problems in the future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants