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

java.lang.AssertionError: assertion failed: No plan for EventTimeWatermark

    XMLWordPrintableJSON

Details

    Description

      Hi ,
      We have a requirement to read data from kafka, apply some transformation and store data to database .For this we are implementing watermarking feature along with aggregate function and for storing we are writing our own sink (Structured streaming) .we are using spark 2.3.0, java 1.8 and kafka version 0.10.
      We are getting the below error.

      "java.lang.AssertionError: assertion failed: No plan for EventTimeWatermark timestamp#39: timestamp, interval 2 minutes"
       
      works perfectly fine when we use Console as sink instead custom sink. For Debugging the issue, we are performing "dataframe.show()" in our custom sink and nothing else.

      Please find the attachment for the Error log and the code. Please look into this issue as this a blocker and we are not able to proceed further or find any alternatives as we need watermarking feature.

       

      Attachments

        1. kafka_consumer_code.java
          4 kB
          Raviteja
        2. kafka_error_log.txt
          40 kB
          Raviteja
        3. kafka_custom_sink.java
          0.8 kB
          Raviteja

        Activity

          People

            Unassigned Unassigned
            ravitejasutrave Raviteja
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: