-
Notifications
You must be signed in to change notification settings - Fork 29k
[SPARK-3875] Add TEMP DIRECTORY configuration #2729
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Can one of the admins verify this patch? |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS this can all be one line if you set the default value to ... .get("spark.tmp.dir", System.getProperty("java.io.tmpdir"))
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @srowen for the comment. That's more clear!
Currently I am running Spark 1.1 in Standalone mode. And I have set the 'SPARK_LOCAL_DIRS' to data disk, which will store the broadcast Files in the target directory. However, the dependencies for executors will be fetched and stored in the /tmp/ directory.
And the dependencies will not be removed.
Like the snappy dependency, for example:
"snappy-1.0.5.3-f4880c9f-95d9-4ab6-b1c8-8686d0b88f42-libsnappyjava.so"
So the /tmp/ directory will grow large.
|
At least for yarn, this will create issues if overridden from default. Why not use std java property and define it for local and standalone mode where relevant. |
|
@mridulm Using std java property is fine. |
|
There is a java property which controls this ... java.io.tmpdir
|
|
Can one of the admins verify this patch? |
|
Yes, as @mridulm pointed out. This should not be settable by the users on yarn. It should automatically use the yarn approved directories. We have logic in there for setting the java.io.tmpdir in ClientBase. If this is added we would need to do something similar and not let the user override it. |
|
It sounds like this is a wont-fix, given the discussion. Do you mind closing this PR? |
Related to SPARK-3875.