Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-2388

Streaming from multiple different Kafka topics is problematic

Rank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Invalid
    • 1.0.0
    • 1.0.1
    • DStreams
    • None

    Description

      Default way of creating stream out of Kafka source would be as

      val stream = KafkaUtils.createStream(ssc,"localhost:2181","logs", Map("retarget" -> 2,"datapair" -> 2))

      However, if two topics - in this case "retarget" and "datapair" - are very different, there is no way to set up different filter, mapping functions, etc), as they are effectively merged.

      However, instance of KafkaInputDStream, created with this call internally calls ConsumerConnector.createMessageStream() which returns map of KafkaStreams, keyed by topic. It would be great if this map would be exposed somehow, so aforementioned call

      val streamS = KafkaUtils.createStreamS(...)

      returned map of streams.

      Regards,
      Sergey Malov
      Collective Media

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            smalov Sergey
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment