Commit
2018fba2fe822456b1641dd80b06c9378bdeb8cb
by Claudio Atzorifix(graph-metrics): create the files of the metrics DB writable by any user
The metrics DB is written by the pipeline, which runs as the production user, and
by people repairing a stage. With the default umask a file created by one user
cannot be overwritten by the other, and an unpartitioned table such as
graph_metrics_runs rewrites its _SUCCESS marker at every write, so a run failed
at its last step after computing all the metrics.
The Spark actions of the metrics workflow now set
spark.hadoop.fs.permissions.umask-mode from the optional metricsUmask parameter,
which defaults to 000 (files 666, folders 777). It is a literal of each action
and not part of sparkClusterOpts, which the pipeline workflows override when they
call this workflow as a sub-workflow. Callers do not need to pass it.
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>