GitHub user vipul1409 opened a pull request:

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

    ZEPPELIN-2199: Fix lapply issue in sparkR

    ### What is this PR for?
    Function createRDDFromArray used for creating R RDD expects a 
JavaSparkContext object instead of spark context. This PR address that concern. 
    
    ### What type of PR is it?
    Bug Fix
    
    ### Todos
    * [ ] - Task
    
    ### What is the Jira issue?
    https://issues.apache.org/jira/browse/ZEPPELIN-2199
    
    ### How should this be tested?
    Build Zeppelin and Run 
    %r
    families <- c("gaussian", "poisson")
    df <- createDataFrame(iris)
    train <- function(family)
    { 
        model <- glm(Sepal.Length ~ Sepal.Width + Species, iris, family = 
family) 
        summary(model) 
    }
    model.summaries <- spark.lapply(families, train)
    print(model.summaries)
    
    It fails in current master but will pass in this branch.
    
    ### Screenshots (if appropriate)
    
    ### Questions:
    * Does the licenses files need update?
    No
    * Is there breaking changes for older versions?
    Not completely sure about this. 
    * Does this needs documentation?
    No.


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

    $ git pull https://github.com/vipul1409/zeppelin ZEPPELIN-2199

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

    https://github.com/apache/zeppelin/pull/2090.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 #2090
    
----
commit 7cff467d02f2325fbc5c19f0de85146842132fc4
Author: Vipul Modi <vip...@qubole.com>
Date:   2017-03-02T12:55:25Z

    ZEPPELIN-2199: Fix lapply issue in sparkR

----


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

Reply via email to