AngersZhuuuu commented on PR #43936:
URL: https://github.com/apache/spark/pull/43936#issuecomment-1825190497

   > Can we fix `SparkFiles.get` at driver side when Yarn cluster is used?
   
   `SparkFiles.get()` don't have problem. 
   The problem is user use relative path to use the added file.
   But `SparkContext.addFile` add to driverTempDir
   ```
     def getRootDirectory(): String =
       SparkEnv.get.driverTmpDir.getOrElse(".")
   ```
   
   But executing use `.` path to get file.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to