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

    https://github.com/apache/spark/pull/3976#discussion_r23904612
  
    --- Diff: 
yarn/src/test/scala/org/apache/spark/deploy/yarn/YarnClusterSuite.scala ---
    @@ -98,6 +121,9 @@ class YarnClusterSuite extends FunSuite with 
BeforeAndAfterAll with Matchers wit
         }
     
         fakeSparkJar = File.createTempFile("sparkJar", null, tempDir)
    +    val sparkHome = sys.props.getOrElse("spark.test.home", 
fail("spark.test.home is not set!"))
    --- End diff --
    
    Because PythonRunner should use sparkPythonPath that contains pyspark 
library, here i  add SPARK_HOME to env of executor and driver. if we do not add 
this env, python in executor or driver cannot work. @sryza


---
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]

Reply via email to