GitHub user dongjoon-hyun opened a pull request:
https://github.com/apache/spark/pull/13365
[SPARK-15618][SQL][MLLIB] Use SparkSession.builder.sparkContext if
applicable.
## What changes were proposed in this pull request?
This PR changes function `SparkSession.builder.sparkContext(..)` from
`private[sql]` into **private[spark]**, and uses it if applicable.
```
- val spark = SparkSession.builder().config(sc.getConf).getOrCreate()
+ val spark = SparkSession.builder().sparkContext(sc).getOrCreate()
```
## How was this patch tested?
Pass the existing Jenkins tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/dongjoon-hyun/spark SPARK-15618
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/13365.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 #13365
----
commit 17311223605d704be8fd10814ee6d65acebf5c12
Author: Dongjoon Hyun <[email protected]>
Date: 2016-05-27T21:24:07Z
[SPARK-15618][SQL][MLLIB] Use SparkSession.builder.sparkContext if possible
----
---
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]