You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by bi...@bitfox.top on 2021/12/25 01:02:09 UTC
df.show() to text file
Hello list,
spark newbie here :0
How can I write the df.show() result to a text file in the system?
I run with pyspark, not the python client programming.
Thanks.
---------------------------------------------------------------------
To unsubscribe e-mail: user-unsubscribe@spark.apache.org
Re: df.show() to text file
Posted by Sean Owen <sr...@gmail.com>.
You can redirect the stdout of your program I guess but show is for
display, not saving data. Use df.write methods for that.
On Fri, Dec 24, 2021, 7:02 PM <bi...@bitfox.top> wrote:
> Hello list,
>
> spark newbie here :0
> How can I write the df.show() result to a text file in the system?
> I run with pyspark, not the python client programming.
>
> Thanks.
>
> ---------------------------------------------------------------------
> To unsubscribe e-mail: user-unsubscribe@spark.apache.org
>
>