Github user vanzin commented on the issue:

    https://github.com/apache/spark/pull/22867
  
    I think the reason your original attempt didn't work is because of how you 
wrote the code.
    
        private val tmpDir = "file:///" + System.getProperty("java.io.tmpdir")
    
    That seems to have too many slashes. I suggested using "File.toURI" which 
results in a different URI:
    
    ```
    scala> new java.io.File("/tmp").toURI()
    res0: java.net.URI = file:/tmp/
    ```
    
    Could you try that instead? If that really doesn't work we can go with 
`hadoop.tmp.dir`, but I'd rather really use something that is local to the 
application instead of something that lives in HDFS and can pose problems if 
you have multiple applications, and can also leave garbage behind.


---

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

Reply via email to