Skip to content
Closed
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
Prev Previous commit
Next Next commit
getCanonicalFile for source and dest - retest please
  • Loading branch information
turboFei committed Jun 5, 2023
commit 33c287a6cb79d9650a1432437a070279cc1c279f
Original file line number Diff line number Diff line change
Expand Up @@ -426,10 +426,11 @@ private[spark] class SparkSubmit extends Logging {
targetDir, sparkConf, hadoopConf)
Utils.stringToSeq(localResources).map(Utils.resolveURI).zip(resolvedUris).map {
case (localResources, resolvedUri) =>
val source = new File(localResources.getPath)
val source = new File(localResources.getPath).getCanonicalFile
val dest = new File(
workingDirectory,
if (resolvedUri.getFragment != null) resolvedUri.getFragment else source.getName)
.getCanonicalFile
logInfo(s"Files $resolvedUri from $source to $dest")
Utils.deleteRecursively(dest)
if (isArchive) {
Expand Down