Github user ArcherShao commented on a diff in the pull request:
https://github.com/apache/spark/pull/5114#discussion_r26913307
--- 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 --
@jerryshao thanks for your review, I have not thinked about people who
customized Receiver and override this function, I just want to provide a
function to set preferred location for the ReceiverInputDStream/Receiver
already exsits in Spark Streaming.
---
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]