GitHub user felixcheung opened a pull request:
https://github.com/apache/spark/pull/16670
[SPARK-19324][SPARKR] Spark VJM stdout output is getting dropped in SparkR
## What changes were proposed in this pull request?
This affects mostly running job from the driver in client mode when results
are expected to be through stdout (which should be somewhat rare, but possible)
Before:
```
> a <- as.DataFrame(cars)
> b <- group_by(a, "dist")
> c <- count(b)
> sparkR.callJMethod(c$count@jc, "explain", TRUE)
NULL
```
After:
```
> a <- as.DataFrame(cars)
> b <- group_by(a, "dist")
> c <- count(b)
> sparkR.callJMethod(c$count@jc, "explain", TRUE)
count#11L
NULL
```
Now, `column.explain()` doesn't seem very useful (we can get more extensive
output with `DataFrame.explain()`) but there are other more complex example
with calls of `println` in Scala/JVM side.
## How was this patch tested?
manual
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/felixcheung/spark rjvmstdout
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/16670.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 #16670
----
commit 294ce991d2e1c8d7a38b526ccf4f35a7ac41fbc1
Author: Felix Cheung <[email protected]>
Date: 2017-01-22T02:14:06Z
do not drop stdout
----
---
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]