Support Questions
Find answers, ask questions, and share your expertise

Who agreed with this solution

Re: Spark Streaming save output to mysql DB

Master Collaborator

Yes, perfectly possible. It's not specific to Spark Streaming or even Spark; you'd just use foreachPartition to create and execute a SQL statement via JDBC over a batch of records. The code is just normal JDBC code.

View solution in original post

Who agreed with this solution