GitHub user dongjoon-hyun opened a pull request:

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

    [SPARK-14780][R] Add `setLogLevel` and `version` to SparkR

    ## What changes were proposed in this pull request?
    
    This PR aims to add `setLogLevel` and `version` funtions to SparkR shell.
    
    **Spark Shell**
    ```scala
    scala> sc.version
    res0: String = 2.0.0-SNAPSHOT
    scala> sc.setLogLevel("ERROR")
    ```
    
    **PySpark**
    ```python
    >>> sc.version
    u'2.0.0-SNAPSHOT'
    >>> sc.setLogLevel("ERROR")
    ```
    
    **SparkR (this PR)**
    ```r
    > version(sc)
    [1] "2.0.0-SNAPSHOT"
    > setLogLevel(sc,"ERROR")
    NULL
    ```
    
    ## How was this patch tested?
    
    Pass the Jenkins tests including a new R testcase.

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

    $ git pull https://github.com/dongjoon-hyun/spark SPARK-14780

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

    https://github.com/apache/spark/pull/12547.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 #12547
    
----
commit a2013c884ffa536419ba016fdfbef6fdcd35982b
Author: Dongjoon Hyun <[email protected]>
Date:   2016-04-20T23:28:35Z

    [SPARK-14780][R] Add `setLogLevel` and `version` to SparkR
    
    ```scala
    scala> sc.version
    res0: String = 2.0.0-SNAPSHOT
    scala> sc.setLogLevel("ERROR")
    ```
    
    ```python
    >>> sc.version
    u'2.0.0-SNAPSHOT'
    >>> sc.setLogLevel("ERROR")
    ```

----


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

Reply via email to