Skip to content
This repository has been archived by the owner on Jan 9, 2020. It is now read-only.

allow spark driver find shuffle pods in specified namespace #357

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ private[spark] class ShufflePodCache (

def start(): Unit = {
// seed the initial cache.
val pods = client.pods().withLabels(dsLabels.asJava).list()
val pods = client.pods()
.inNamespace(dsNamespace).withLabels(dsLabels.asJava).list()
pods.getItems.asScala.foreach {
pod =>
if (Readiness.isReady(pod)) {
Expand All @@ -50,6 +51,7 @@ private[spark] class ShufflePodCache (

watcher = client
.pods()
.inNamespace(dsNamespace)
.withLabels(dsLabels.asJava)
.watch(new Watcher[Pod] {
override def eventReceived(action: Watcher.Action, p: Pod): Unit = {
Expand Down