Skip to content
Merged
Show file tree
Hide file tree
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 @@ -57,7 +57,5 @@ class Sensors(
class Executors(
@NotNull
@Name("thread.pool.size")
val threadPoolSize: Int,
@DefaultValue(Array("true"))
val enableHyperdriveExecutor: Boolean
val threadPoolSize: Int
)
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ class Executors @Inject() (
jobInstance match {
case Some(ji) =>
ji.jobParameters match {
case hyperdrive: SparkInstanceParameters
if hyperdrive.jobType == JobTypes.Hyperdrive && useHyperExecutor(hyperdrive) =>
case hyperdrive: SparkInstanceParameters if hyperdrive.jobType == JobTypes.Hyperdrive =>
HyperdriveExecutor
.execute(ji, hyperdrive, updateJob, sparkClusterService, hyperdriveOffsetComparisonService)
case spark: SparkInstanceParameters => SparkExecutor.execute(ji, spark, updateJob, sparkClusterService)
Expand All @@ -136,12 +135,6 @@ class Executors @Inject() (
fut
}

private def useHyperExecutor(parameters: SparkInstanceParameters) = {
schedulerConfig.executors.enableHyperdriveExecutor &&
parameters.jobType == JobTypes.Hyperdrive &&
parameters.appArguments.contains("useHyperdriveExecutor=true")
}

private def updateJob(jobInstance: JobInstance): Future[Unit] = {
logger.info(
s"Job updated. ID = ${jobInstance.id} STATUS = ${jobInstance.jobStatus} EXECUTOR_ID = ${jobInstance.executorJobId}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@ object TestSchedulerConfig {
autostart,
lagThreshold,
new Sensors(sensorsThreadPoolSize, sensorsChangedSensorsChunkQuerySize),
new Executors(executorsThreadPoolSize, true)
new Executors(executorsThreadPoolSize)
)
}