aboutsummaryrefslogtreecommitdiff
path: root/streaming
diff options
context:
space:
mode:
Diffstat (limited to 'streaming')
-rw-r--r--streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala5
1 files changed, 5 insertions, 0 deletions
diff --git a/streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala b/streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala
index ec59221459..ecab5510a8 100644
--- a/streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala
+++ b/streaming/src/main/scala/org/apache/spark/streaming/StreamingContext.scala
@@ -121,6 +121,11 @@ class StreamingContext private[streaming] (
}
}
+ if (sc.conf.get("spark.master") == "local" || sc.conf.get("spark.master") == "local[1]") {
+ logWarning("spark.master should be set as local[n], n > 1 in local mode if you have receivers" +
+ " to get data, otherwise Spark jobs will not get resources to process the received data.")
+ }
+
private[streaming] val conf = sc.conf
private[streaming] val env = SparkEnv.get