You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by da...@apache.org on 2016/04/25 07:51:40 UTC
spark git commit: [SPARK-14881] [PYTHON] [SPARKR] pyspark and sparkR
shell default log level should match spark-shell/Scala
Repository: spark
Updated Branches:
refs/heads/master 6ab4d9e0c -> c752b6c5e
[SPARK-14881] [PYTHON] [SPARKR] pyspark and sparkR shell default log level should match spark-shell/Scala
## What changes were proposed in this pull request?
Change default logging to WARN for pyspark shell and sparkR shell for a much cleaner environment.
## How was this patch tested?
Manually running pyspark and sparkR shell
Author: felixcheung <fe...@hotmail.com>
Closes #12648 from felixcheung/pylogging.
Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/c752b6c5
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/c752b6c5
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/c752b6c5
Branch: refs/heads/master
Commit: c752b6c5ec488b87c3aaaa86902dd4da9b4b406f
Parents: 6ab4d9e
Author: felixcheung <fe...@hotmail.com>
Authored: Sun Apr 24 22:51:18 2016 -0700
Committer: Davies Liu <da...@gmail.com>
Committed: Sun Apr 24 22:51:18 2016 -0700
----------------------------------------------------------------------
.../scala/org/apache/spark/api/python/PythonGatewayServer.scala | 2 ++
core/src/main/scala/org/apache/spark/api/r/RBackend.scala | 3 +++
2 files changed, 5 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/spark/blob/c752b6c5/core/src/main/scala/org/apache/spark/api/python/PythonGatewayServer.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/api/python/PythonGatewayServer.scala b/core/src/main/scala/org/apache/spark/api/python/PythonGatewayServer.scala
index 6c40722..11f2432 100644
--- a/core/src/main/scala/org/apache/spark/api/python/PythonGatewayServer.scala
+++ b/core/src/main/scala/org/apache/spark/api/python/PythonGatewayServer.scala
@@ -32,6 +32,8 @@ import org.apache.spark.util.Utils
* This process is launched (via SparkSubmit) by the PySpark driver (see java_gateway.py).
*/
private[spark] object PythonGatewayServer extends Logging {
+ initializeLogIfNecessary(true)
+
def main(args: Array[String]): Unit = Utils.tryOrExit {
// Start a GatewayServer on an ephemeral port
val gatewayServer: GatewayServer = new GatewayServer(null, 0)
http://git-wip-us.apache.org/repos/asf/spark/blob/c752b6c5/core/src/main/scala/org/apache/spark/api/r/RBackend.scala
----------------------------------------------------------------------
diff --git a/core/src/main/scala/org/apache/spark/api/r/RBackend.scala b/core/src/main/scala/org/apache/spark/api/r/RBackend.scala
index 9d29a84..41d0a85 100644
--- a/core/src/main/scala/org/apache/spark/api/r/RBackend.scala
+++ b/core/src/main/scala/org/apache/spark/api/r/RBackend.scala
@@ -94,6 +94,8 @@ private[spark] class RBackend {
}
private[spark] object RBackend extends Logging {
+ initializeLogIfNecessary(true)
+
def main(args: Array[String]): Unit = {
if (args.length < 1) {
// scalastyle:off println
@@ -101,6 +103,7 @@ private[spark] object RBackend extends Logging {
// scalastyle:on println
System.exit(-1)
}
+
val sparkRBackend = new RBackend()
try {
// bind to random port
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org