Skip to content

Commit

Permalink
Add warning log
Browse files Browse the repository at this point in the history
  • Loading branch information
jerryshao committed Nov 13, 2014
1 parent 484fecb commit eca428b
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,11 @@ class StreamingContext private[streaming] (
}
}

if (sc.conf.get("spark.master") == "local") {
logWarning("spark.master should be set as local[n], n > 1 in local mode if you have receivers" +
" to get data, otherwise the job cannot get enough resource to execute.")
}

private[streaming] val conf = sc.conf

private[streaming] val env = SparkEnv.get
Expand Down

0 comments on commit eca428b

Please sign in to comment.