GitHub user wangmiao1981 opened a pull request:
https://github.com/apache/spark/pull/14433
[SPARK-16829][SparkR]:sparkR sc.setLogLevel doesn't work
## What changes were proposed in this pull request?
(Please fill in changes proposed in this fix)
./bin/sparkR
Launching java with spark-submit command
/Users/mwang/spark_ws_0904/bin/spark-submit "sparkr-shell"
/var/folders/s_/83b0sgvj2kl2kwq4stvft_pm0000gn/T//RtmpQxJGiZ/backend_porte9474603ed1e
Using Spark's default log4j profile:
org/apache/spark/log4j-defaults.properties
Setting default log level to "WARN".
To adjust logging level use sc.setLogLevel(newLevel).
> sc.setLogLevel("INFO")
Error: could not find function "sc.setLogLevel"
sc.setLogLevel doesn't exist.
R has a function setLogLevel.
I rename the setLogLevel function to sc.setLogLevel.
## How was this patch tested?
(Please explain how this patch was tested. E.g. unit tests, integration
tests, manual tests)
Change unit test. Run unit tests.
Manually tested it in sparkR shell.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/wangmiao1981/spark sc
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/14433.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 #14433
----
commit 9d3d8e52d3690cff4f6d0353e6198df918bc3f5f
Author: [email protected] <[email protected]>
Date: 2016-08-01T06:10:29Z
rename setLogLevel
----
---
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]