Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Summary: Updated all Spark versions. Added SingleStore 8.1 to testing Test Plan: https://webapp.io/memsql/commits?query=repo%3Asinglestore-spark-connector+id%3A410 Reviewers: pmishchenko-ua, vtkachuk-ua Reviewed By: pmishchenko-ua Subscribers: engineering-list JIRA Issues: PLAT-6642 Differential Revision: https://grizzly.internal.memcompute.com/D63058
- Loading branch information
1 parent
1e82f0f
commit 6c65288
Showing
17 changed files
with
585 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
src/main/scala-sparkv3.4/spark/MaxNumConcurrentTasks.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
package org.apache.spark.scheduler | ||
|
||
import org.apache.spark.rdd.RDD | ||
|
||
object MaxNumConcurrentTasks { | ||
def get(rdd: RDD[_]): Int = { | ||
val (_, resourceProfiles) = | ||
rdd.sparkContext.dagScheduler.getShuffleDependenciesAndResourceProfiles(rdd) | ||
val resourceProfile = | ||
rdd.sparkContext.dagScheduler.mergeResourceProfilesForStage(resourceProfiles) | ||
rdd.sparkContext.maxNumConcurrentTasks(resourceProfile) | ||
} | ||
} |
Oops, something went wrong.