-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-18278] [Scheduler] Spark on Kubernetes - Basic Scheduler Backend #19468
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
Changes from 1 commit
f6fdd6a
75e31a9
cf82b21
488c535
82b79a7
c052212
c565c9f
2fb596d
992acbe
b0a5839
a4f9797
2b5dcac
018f4d8
4b32134
6cf4ed7
1f271be
71a971f
0ab9ca7
7f14b71
7afce3f
b75b413
3b587b4
cb12fec
ae396cf
f8e3249
a44c29e
4bed817
c386186
b85cfc4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
- Loading branch information
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -62,8 +62,7 @@ private[spark] class KubernetesClusterSchedulerBackend( | |
|
|
||
| private val kubernetesDriverPodName = conf | ||
| .get(KUBERNETES_DRIVER_POD_NAME) | ||
| .getOrElse( | ||
| throw new SparkException("Must specify the driver pod name")) | ||
| .getOrElse(throw new SparkException("Must specify the driver pod name")) | ||
| private implicit val requestExecutorContext = ExecutionContext.fromExecutorService( | ||
| requestExecutorsService) | ||
|
|
||
|
|
@@ -86,7 +85,7 @@ private[spark] class KubernetesClusterSchedulerBackend( | |
| } | ||
|
|
||
| private val executorWatchResource = new AtomicReference[Closeable] | ||
| protected var totalExpectedExecutors = new AtomicInteger(0) | ||
| protected val totalExpectedExecutors = new AtomicInteger(0) | ||
|
||
|
|
||
| private val driverUrl = RpcEndpointAddress( | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Can you just call |
||
| conf.get("spark.driver.host"), | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The logic to get driver pod name here is the same with that in
ExecutorPodFactoryImpl, could we combine the logic to avoid future potential inconsistance?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actually the one in
ExecutorPodFactoryImplis not used anywhere. Deleted that one and kept this one.