-
I set the replication factor to 1
But spark create files with factor replication = 3
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hi @yazynin, the replication config for the bucket is a default if the client does not provide one. According to the audit log, it looks like the spark client explicitly requested to create a key of replication factor 3, which overrides the bucket default. Check if your spark client has the configuration |
Beta Was this translation helpful? Give feedback.
Hi @yazynin, the replication config for the bucket is a default if the client does not provide one. According to the audit log, it looks like the spark client explicitly requested to create a key of replication factor 3, which overrides the bucket default. Check if your spark client has the configuration
spark.hadoop.dfs.replication
set to 3, and change it to 1 if that is the desired behavior. Ozone has client side replication configs as well:ozone.replication
(you can set this to 1) andozone.replication.type
(you can set this toRATIS
). I believe the Ozone client configs will not be used if the layer above, like spark invoking Ozone through ofs, has already specified a replication config.