GitHub user BryanCutler opened a pull request: https://github.com/apache/spark/pull/13237
[SPARK-15456][PYSPARK] Fixed PySpark shell context initialization when HiveConf not present ## What changes were proposed in this pull request? When PySpark shell cannot find HiveConf, it will fallback to create a SparkSession from a SparkContext. This fixes a bug caused by using a variable to SparkContext before it was initialized. ## How was this patch tested? Manually starting PySpark shell and using the SparkContext You can merge this pull request into a Git repository by running: $ git pull https://github.com/BryanCutler/spark pyspark-shell-session-context-SPARK-15456 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/spark/pull/13237.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #13237 ---- commit 2ddd5d08b133a792f6f6ca2a7b77557c2467e5e7 Author: Bryan Cutler <cutl...@gmail.com> Date: 2016-05-20T22:59:27Z fixed shell context initialization when HiveConf not present ---- --- 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 infrastruct...@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org