Github user ArcherShao commented on a diff in the pull request:
https://github.com/apache/spark/pull/5114#discussion_r26922663
--- 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 --
I have tried, but didn't find a good way to pass the argument through
`ReceiverInputDStream` to this by adding some methods.
IMO, `ReceiverInputDStream` is also an interface for user, user can overide
preferredLocation (`ReceiverInputDStream`) in their own implementation.
---
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]