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

KafkaSourceProvider falls back on path as synonym for topic

    XMLWordPrintableJSON

Details

    Description

      1. KafkaSourceProvider supports topic option that sets the Kafka topic to save a DataFrame's rows to
      2. KafkaSourceProvider can use topic column to assign rows to Kafka topics for writing

      What seems a quite interesting option is to support start(path: String) as the least precedence option in which path would designate the default topic when no other options are used.

      df.writeStream.format("kafka").start("topic")
      

      See http://apache-spark-developers-list.1001551.n3.nabble.com/KafkaSourceProvider-Why-topic-option-and-column-without-reverting-to-path-as-the-least-priority-td21458.html for discussion

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jlaskowski Jacek Laskowski
              Michael Armbrust Michael Armbrust
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: