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

Custom Receiver for Structured streaming

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Information Provided
    • 2.4.0
    • None
    • Structured Streaming
    • None

    Description

      Hi,

      I have implemented a Custom Receiver for a https/json data source by implementing the Receievr abstract class as provided in the documentation here https://spark.apache.org/docs/latest//streaming-custom-receivers.html

      This approach works on Spark streaming context  where the custom receiver class is passed it receiverStream. However I would like the implement the same for Structured streaming as each of the DStreams have a complex structure and need to be joined with each other based on complex rules. (https://stackoverflow.com/questions/53449599/join-two-spark-dstreams-with-complex-nested-structure)

      Structured streaming uses the Spark Session object that takes in DataStreamReader which is a final class. Please advice on how to implement the custom receiver for Strucutred Streaming. 

      Thanks,

      Attachments

        Activity

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

          People

            Unassigned Unassigned Assign to me
            aarthipa Aarthi
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment