GitHub user techaddict opened a pull request:

    https://github.com/apache/spark/pull/13056

    [SPARK-15270][SQL][MINOR][WIP] Use SparkSession Builder to build a session 
with HiveSupport

    ## What changes were proposed in this pull request?
    Before:
    Creating a hiveContext was failing
    ```python
    from pyspark.sql import HiveContext
    hc = HiveContext(sc)
    ```
    with
    ```
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
      File "spark-2.0/python/pyspark/sql/context.py", line 458, in __init__
        sparkSession = SparkSession.withHiveSupport(sparkContext)
      File "spark-2.0/python/pyspark/sql/session.py", line 192, in 
withHiveSupport
        jsparkSession = 
sparkContext._jvm.SparkSession.withHiveSupport(sparkContext._jsc.sc())
      File "spark-2.0/python/lib/py4j-0.9.2-src.zip/py4j/java_gateway.py", line 
1048, in __getattr__
    py4j.protocol.Py4JError: org.apache.spark.sql.SparkSession.withHiveSupport 
does not exist in the JVM
    ```
    
    ## How was this patch tested?
    Existing Tests

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/techaddict/spark SPARK-15270

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/13056.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 #13056
    
----
commit 310a3700b66adbd9d349cdfd386574155ccf300d
Author: Sandeep Singh <sand...@techaddict.me>
Date:   2016-05-11T19:36:31Z

    [SPARK-15270][SQL][MINOR] Use SparkSession Builder to build a session with 
HiveSupport

----


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

Reply via email to