Github user tdas commented on a diff in the pull request:
https://github.com/apache/spark/pull/911#discussion_r14794612
--- Diff:
external/kafka/src/main/scala/org/apache/spark/streaming/kafka/KafkaUtils.scala
---
@@ -70,7 +92,7 @@ object KafkaUtils {
kafkaParams: Map[String, String],
topics: Map[String, Int],
storageLevel: StorageLevel
- ): ReceiverInputDStream[(K, V)] = {
+ ): DStream[(K, V)] = {
--- End diff --
I see the problem. Yes, after union you obviously cannot get a
ReceiverInputDStream as union return DStreams, but the createStream should
ideally return ReceiverInputDStream for consistency.
---
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.
---