Skip to content

Commit

Permalink
Maintain consistancy with property naming conventions
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeffrharr committed May 27, 2015
1 parent 6453c90 commit d92d55b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -1482,7 +1482,7 @@ Apart from these, the following properties are also available, and may be useful
</td>
</tr>
<tr>
<td><code>spark.streamingListeners</code></td>
<td><code>spark.streaming.listeners</code></td>
<td>(none)</td>
<td>
A comma-separated list of classes that implement <code>StreamingListener</code>; when initializing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -530,13 +530,13 @@ class StreamingContext private[streaming] (
}

/**
* Registers streamingListeners specified in spark.streamingListeners
* Registers streamingListeners specified in spark.streaming.listeners
*/
private def setupStreamingListeners(): Unit = {
// Use reflection to instantiate listeners specified via `spark.extraListeners`
try {
val listenerClassNames: Seq[String] =
conf.get("spark.streamingListeners", "").split(',').map(_.trim).filter(_ != "")
conf.get("spark.streaming.listeners", "").split(',').map(_.trim).filter(_ != "")
for (className <- listenerClassNames) {
// Use reflection to find the right constructor
val constructors = {
Expand Down

0 comments on commit d92d55b

Please sign in to comment.