You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Jeff Schobelock (JIRA)" <ji...@apache.org> on 2016/12/02 15:21:58 UTC

[jira] [Commented] (SPARK-17945) Writing to S3 should allow setting object metadata

    [ https://issues.apache.org/jira/browse/SPARK-17945?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15715396#comment-15715396 ] 

Jeff Schobelock commented on SPARK-17945:
-----------------------------------------

Just wanted to add some more justification to this (not sure anyone will look). The reason why I wanted this is because when I write out from Spark, to set the Object metadata after that via Java SDK APIs requires a copy of the object. I was hoping for a way to do this in one step that doesn't use the AWS CLI via shell commands form within spark, or other "hacky" things like that.

> Writing to S3 should allow setting object metadata
> --------------------------------------------------
>
>                 Key: SPARK-17945
>                 URL: https://issues.apache.org/jira/browse/SPARK-17945
>             Project: Spark
>          Issue Type: New Feature
>          Components: Spark Core
>    Affects Versions: 2.0.1
>            Reporter: Jeff Schobelock
>            Priority: Minor
>
> I can't find any possible way to use Spark to write to S3 and set user object metadata. This seems like such a simple thing that I feel I must be missing somewhere how to do it....but I have yet to find anything.
> I don't know what all work adding this would entail. My idea would be that there is something like:
> rdd.saveAsTextFile(s3://testbucket/file).withMetadata(Map<String,String> data).



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org