Uh oh!
There was an error while loading. Please reload this page.
[BLAZE-1149] Fix shuffle file permission issue when using BlazeShuffleManager - #1148
Conversation
e2618ac to
5c28632Compare| // Set the shuffle file permissions to 0644 to keep it consistent with the permissions of | ||
| // the built-in shuffler manager in Spark. | ||
| std::fs::set_permissions(path_ref, std::fs::Permissions::from_mode(0o644))?; |
There was a problem hiding this comment.
below code would be impacted by umask.
OpenOptions::new()
.write(true)
.create(true)
.truncate(true)
.mode(0o644)
.open(path_ref)?;
So, we have to use std::fs::set_permissions
turboFei
commented
Aug 11, 2025
I have tested in our cluster, it can fetch the shuffle data after this patch. cc @richox |
turboFei
commented
Aug 15, 2025
gentle ping @richox |
richox
commented
Aug 20, 2025
i didnt see this setPermission logics in spark. so why do we need a different implementation here? |
turboFei
commented
Aug 20, 2025
turboFei
commented
Aug 20, 2025
Have updated the PR description. |
wangyum
commented
Aug 20, 2025
The directory permission created by the c++/rust method in a specific file system or operating system may be inconsistent with the directory permissions created by Spark through Java. |
Uh oh!
There was an error while loading. Please reload this page.



Which issue does this PR close?
Closes#1149
Similar issue with gluten we met before, apache/gluten#9156
Rationale for this change
The purpose of this change is to ensure that the shuffle data files allowing read access for the others to fix shuffle fetch fail.
The error message on NodeManager:
Set the shuffle file permissions to 0644 to keep it consistent with the permissions of the built-in shuffler manager in Spark.
Related spark PR: apache/spark#35085
What changes are included in this PR?
Are there any user-facing changes?
No.
How was this patch tested?
Have tested in our cluster, the file permission looks good now.
It can fetch the shuffle data after this patch.
