Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/6034#discussion_r30393148
--- Diff:
external/twitter/src/main/scala/org/apache/spark/streaming/twitter/TwitterUtils.scala
---
@@ -40,7 +40,7 @@ object TwitterUtils {
twitterAuth: Option[Authorization],
filters: Seq[String] = Nil,
storageLevel: StorageLevel = StorageLevel.MEMORY_AND_DISK_SER_2
- ): ReceiverInputDStream[Status] = {
+ ): ReceiverInputDStream[Status] = ssc.withScope {
--- End diff --
Alright, I implemented what you suggested in the latest commit. I had to
add another helper method that `InputDStream` overrides to include the ID. For
most streams there is not much duplication, but for `FileInputDStream`, for
instance, we have to put `"file stream"` in 3 places. I think there are
dis/advantages in both approaches. Let me know what you think about the latest
one.
---
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]