Github user vanzin commented on a diff in the pull request:

    https://github.com/apache/spark/pull/19130#discussion_r138694227
  
    --- Diff: 
core/src/test/scala/org/apache/spark/deploy/SparkSubmitSuite.scala ---
    @@ -897,6 +897,80 @@ class SparkSubmitSuite
         sysProps("spark.submit.pyFiles") should (startWith("/"))
       }
     
    +  test("handle remote http(s) resources in yarn mode") {
    +    val hadoopConf = new Configuration()
    +    updateConfWithFakeS3Fs(hadoopConf)
    +
    +    val tmpDir = Utils.createTempDir()
    +    val mainResource = File.createTempFile("tmpPy", ".py", tmpDir)
    +    val tmpJar = TestUtils.createJarWithFiles(Map("test.resource" -> 
"USER"), tmpDir)
    +    val tmpJarPath = s"s3a://${new File(tmpJar.toURI).getAbsolutePath}"
    +    // This assumes UT environment could access external network.
    --- End diff --
    
    It would be better if tests could avoid this... you could start a local 
http server, but that feels like a lot of work. Is there some way to mock the 
behavior instead?


---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to