Github user jerryshao commented on a diff in the pull request:
https://github.com/apache/spark/pull/19013#discussion_r134412535
--- Diff: core/src/main/scala/org/apache/spark/deploy/DependencyUtils.scala
---
@@ -51,20 +51,13 @@ private[deploy] object DependencyUtils {
SparkSubmitUtils.resolveMavenCoordinates(packages, ivySettings,
exclusions = exclusions)
}
- def createTempDir(): File = {
- val targetDir = Files.createTempDirectory("tmp").toFile
- // scalastyle:off runtimeaddshutdownhook
- Runtime.getRuntime.addShutdownHook(new Thread() {
- override def run(): Unit = {
- FileUtils.deleteQuietly(targetDir)
- }
- })
- // scalastyle:on runtimeaddshutdownhook
- targetDir
- }
-
- def resolveAndDownloadJars(jars: String, userJar: String): String = {
- val targetDir = DependencyUtils.createTempDir()
+ def resolveAndDownloadJars(
+ jars: String,
+ userJar: String,
+ sparkConf: SparkConf,
+ hadoopConf: Configuration,
+ secMgr: SecurityManager): String = {
+ val targetDir = Utils.createTempDir()
val hadoopConf = new Configuration()
val sparkProperties = new HashMap[String, String]()
val securityProperties = List("spark.ssl.fs.trustStore",
"spark.ssl.trustStore",
--- End diff --
Seems above two variables "sparkProperties" and "securityProperties" are
not required any more.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]