Skip to content

Commit

Permalink
Update ReceiverTracker.scala
Browse files Browse the repository at this point in the history
  • Loading branch information
nishkamravi2 committed Jun 12, 2015
1 parent bc23907 commit 48a4a97
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ class ReceiverTracker(ssc: StreamingContext, skipReceiverLaunch: Boolean = false
val locations = scheduleReceivers(receivers, executors)
val tempRDD =
if (locations(0) != null) {
val roundRobinReceivers = (0 to (receivers.length - 1)).map(i =>
val roundRobinReceivers = (0 until receivers.length).map(i =>
(receivers(i), locations(i)))
ssc.sc.makeRDD[Receiver[_]](roundRobinReceivers)
} else {
Expand Down

0 comments on commit 48a4a97

Please sign in to comment.