You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2020/10/27 17:11:00 UTC
[jira] [Commented] (SPARK-33230) FileOutputWriter jobs have
duplicate JobIDs if launched in same second
[ https://issues.apache.org/jira/browse/SPARK-33230?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17221581#comment-17221581 ]
Steve Loughran commented on SPARK-33230:
----------------------------------------
Thanks. Still got some changes to work through my side to make sure the are no assumptions that app attempt is unique.
For the curious see HADOOP-17318
* Staging committer is using task attemptID (jobId+ taskId + task-attempt) for a path to the local temp dir
* Magic committer uses app attemptId for the path under the dest/__magic dir. Only an issue once that committer allows >1 job to write to same dest.
> FileOutputWriter jobs have duplicate JobIDs if launched in same second
> ----------------------------------------------------------------------
>
> Key: SPARK-33230
> URL: https://issues.apache.org/jira/browse/SPARK-33230
> Project: Spark
> Issue Type: Bug
> Components: SQL
> Affects Versions: 2.4.7, 3.0.1
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Major
> Fix For: 2.4.8, 3.0.2, 3.1.0
>
>
> The Hadoop S3A staging committer has problems with >1 spark sql query being launched simultaneously, as it uses the jobID for its path in the clusterFS to pass the commit information from tasks to job committer.
> If two queries are launched in the same second, they conflict and the output of job 1 includes that of all job2 files written so far; job 2 will fail with FNFE.
> Proposed:
> job conf to set {{"spark.sql.sources.writeJobUUID"}} to the value of {{WriteJobDescription.uuid}}
> That was the property name which used to serve this purpose; any committers already written which use this property will pick it up without needing any changes.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org