GitHub user gss2002 opened a pull request:

    https://github.com/apache/zeppelin/pull/1503

    NPE LivySparkSQLInterpreter thrown with %livy.sql interpreter function

    ### What is this PR for?
    The LivySparkSQLInterpreter class does not correctly process the 
userSessionMap throwing back an NPE when using %livy.sql or %sql when livy is 
default binding. This prevents correct sharing between Spark Sessions and 
SparkSQL Sessions. I have attached a fix that implements seperate static single 
instance classes that manage userSessionMaps.
    
    
    ### What type of PR is it?
    Bug Fix/Improvement
    
    ### Todos
    Documentation/Unit Tests
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-1516
    
    ### How should this be tested?
    Run %sql or %livy.sql against a sql enabled dataset such as hive metastore.
    
    ### Questions:
    * Does the licenses files need update? n
    * Is there breaking changes for older versions? n
    * Does this needs documentation? m
    


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

    $ git pull https://github.com/gss2002/zeppelin ZEPPELIN-1516

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

    https://github.com/apache/zeppelin/pull/1503.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 #1503
    
----
commit 11bcd2d1db02ff2dbb2a8e560e3f09fe37057796
Author: gss2002 <[email protected]>
Date:   2016-10-11T04:09:23Z

    ZEPPELIN-1516 Static/Singleton for userSessionMaps

----


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

Reply via email to