You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@spark.apache.org by JF Chen <da...@gmail.com> on 2018/12/05 08:11:54 UTC
how to change temp directory when spark write data ?
I have two spark apps writing data to one directory. I notice they share
one temp directory, and the spark fist finish writing will clear the temp
directory and the slower one may throw "No lease on *** File does not
exist" error
So how to specify the temp directory?
Thanks!
Regard,
Junfeng Chen
Re: how to change temp directory when spark write data ?
Posted by JF Chen <da...@gmail.com>.
Directory to use for "scratch" space in Spark, including map output files
and RDDs that get stored on disk.
It seems a directory on my local disk. But currently the temp directory is
on hdfs, under the path of df.write.parquet(path)
Regard,
Junfeng Chen
On Wed, Dec 5, 2018 at 6:28 PM Sandip Mehta <sa...@gmail.com>
wrote:
> tryspark.local.dir property.
>
>
> On Wed, Dec 5, 2018 at 1:42 PM JF Chen <da...@gmail.com> wrote:
>
>> I have two spark apps writing data to one directory. I notice they share
>> one temp directory, and the spark fist finish writing will clear the temp
>> directory and the slower one may throw "No lease on *** File does not
>> exist" error
>> So how to specify the temp directory?
>> Thanks!
>>
>> Regard,
>> Junfeng Chen
>>
>
Re: how to change temp directory when spark write data ?
Posted by Sandip Mehta <sa...@gmail.com>.
tryspark.local.dir property.
On Wed, Dec 5, 2018 at 1:42 PM JF Chen <da...@gmail.com> wrote:
> I have two spark apps writing data to one directory. I notice they share
> one temp directory, and the spark fist finish writing will clear the temp
> directory and the slower one may throw "No lease on *** File does not
> exist" error
> So how to specify the temp directory?
> Thanks!
>
> Regard,
> Junfeng Chen
>