Я пытаюсь использовать EventHubsForeachWriter, как показано здесь :
val ehConf = EventHubsConf("YOUR_CONNECTION_STRING")
val writer = EventHubsForeachWriter(ehConf)
val query =
streamingSelectDF
.writeStream
.foreach(writer)
.outputMode("update")
.trigger(ProcessingTime("25 seconds"))
.start()
, но я получаю исключение:
notebook:22: error: type mismatch;
found : org.apache.spark.sql.eventhubs.EventHubsForeachWriter
required: org.apache.spark.sql.ForeachWriter[org.apache.spark.sql.Row]
.foreach(writer)