I need a JDBC sink for my spark structured streaming data frame. At the moment, as far as I know DataFrame’s API lacks writeStream to JDBC implementation (neith
writeStream
Just define JDBCSink in a separated file rather than defining it as an inner class which may capture the outer reference.