How to use external database (postgresql) as input in streaming query?
问题 I am trying to implement streaming input updates in Postgresql. Specifically , I would like to use Postgresql as datasource in stream input into spark. Looking at the document, I was not sure if this is possible or not. https://spark.apache.org/docs/latest/streaming-programming-guide.html Would it be possible to stream input from PostgresQL, perhaps as a micro batch ? 回答1: To stream your PSQL Data as a micro batch, Kafka is the best way. You can use Kafka connect (as a source) to established