Github user andrewor14 commented on a diff in the pull request:
https://github.com/apache/spark/pull/6034#discussion_r30390495
--- 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 --
Answer to your first question: this is still need because you need the
scope ID even if you don't need the name.
2nd question: It's to avoid duplicating the name of the stream. There are a
few methods that create `*KafkaInputDStream` for instance.
---
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]