You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by Krishnanand Khambadkone <kk...@yahoo.com.INVALID> on 2020/10/16 00:13:45 UTC

Writing to mysql from pyspark spark structured streaming

Hi,  I am trying to write to mysql from a spark structured streaming kafka source.  Using spark 2.4.0. I get this exception,

AnalysisException: u"'write' can not be called on streaming Dataset/DataFrame


Re: Writing to mysql from pyspark spark structured streaming

Posted by German Schiavon <gs...@gmail.com>.
Hi,

can you share the code?

You have to call *writeStream* on streaming Dataset/Dataframe

On Fri, 16 Oct 2020 at 02:14, Krishnanand Khambadkone
<kk...@yahoo.com.invalid> wrote:

> Hi,  I am trying to write to mysql from a spark structured streaming kafka
> source.  Using spark 2.4.0. I get this exception,
>
> AnalysisException: u"'write' can not be called on streaming
> Dataset/DataFrame
>
>