You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Steve Loughran (Jira)" <ji...@apache.org> on 2020/12/07 14:30:00 UTC
[jira] [Commented] (HADOOP-17414) Magic committer files don't have
the count of bytes written collected by spark
[ https://issues.apache.org/jira/browse/HADOOP-17414?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17245237#comment-17245237 ]
Steve Loughran commented on HADOOP-17414:
-----------------------------------------
Proposed:
When we create the 0-byte marker file, we know the length of the final file, so declare it in a custom HTTP header "x-s3a-magic-marker"
..which gets returned on a HEAD request of the object
we modify the S3A FS so that when it does a HEAD on an object under a __magic path which isn't a special (.pending/.pendingset) file, it looks for this header and returns it instead of the actual length.
* This doesn't show in a LIST; it MUST be HEAD
* So the Spark tracker must be doing exactly that.
* And it mustn't go through S3Guard, as that will skip the HEAD request if there's a record in DDB which hasn't expired yet.
There's more complexity here than it seems as we'd need to restrict this to getFileStatus() API calls and not other probes for objects, e.g those for copy/rename/open, and on a copy we'd need to strip out the "x-s3a-magic-marker" field to stop it contaminating other things.
> Magic committer files don't have the count of bytes written collected by spark
> ------------------------------------------------------------------------------
>
> Key: HADOOP-17414
> URL: https://issues.apache.org/jira/browse/HADOOP-17414
> Project: Hadoop Common
> Issue Type: Sub-task
> Components: fs/s3
> Affects Versions: 3.2.0
> Reporter: Steve Loughran
> Assignee: Steve Loughran
> Priority: Major
>
> The spark statistics tracking doesn't correctly assess the size of the uploaded files as it only calls getFileStatus on the zero byte objects -not the yet-to-manifest files.
> Everything works with the staging committer purely because it's measuring the length of the files staged to the local FS, not the unmaterialized output.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org