Skip to content
Merged
Changes from 1 commit
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 @@ -222,6 +222,13 @@ private[spark] class ExecutorPodsAllocator(
kubernetesClient.pods().create(podWithAttachedContainer)
newlyCreatedExecutors(newExecutorId) = clock.getTimeMillis()
logDebug(s"Requested executor with id $newExecutorId from Kubernetes.")
try {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bill has some good recommendations here for patching code. https://github.com/lyft/lyft-hadoop#patching.

Do we want to push it to a separate function at least and maybe behind a flag too.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure will add a new method

val m = Class.forName("com.lyft.data.spark.AppMetrics$").getField("MODULE$").get(null)
Class.forName("com.lyft.data.spark.AppMetrics$")
.getDeclaredMethod("setFirstExecutorAllocationTime").invoke(m)
} catch {
case e: Throwable =>
}
}
}

Expand Down