Github user jerryshao commented on a diff in the pull request:
https://github.com/apache/spark/pull/5114#discussion_r26910176
--- Diff:
streaming/src/main/scala/org/apache/spark/streaming/receiver/Receiver.scala ---
@@ -107,9 +107,6 @@ abstract class Receiver[T](val storageLevel:
StorageLevel) extends Serializable
*/
def onStop()
- /** Override this to specify a preferred location (hostname). */
- def preferredLocation : Option[String] = None
--- End diff --
Why move this function from `Receiver` to `ReceiverInputDStream`? I think
for people who customized `Receiver` and override this function may fail to
compile. Is there any specific reason?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]