Naveen Pishe created SPARK-12214:
------------------------------------

             Summary: Spark to provide an API to save user-defined metadata as 
part of Sequence File header
                 Key: SPARK-12214
                 URL: https://issues.apache.org/jira/browse/SPARK-12214
             Project: Spark
          Issue Type: New Feature
          Components: Spark Core
    Affects Versions: 1.3.0
            Reporter: Naveen Pishe


There is requirement to save "user-defined" Metadata as part of Sequence File 
"Header" using Spark. 

To write a User-defined metadata as part of Sequence File using regular Hadoop 
API's I pass the metadata object to SequenceFile.Writer constructor which when 
creates a SequenceFile ensures the metadata is part of the sequence file header.

Currently Spark's JavaPairRDD Api provides methods to save an RDD to an 
SequenceFile format, but I don't see any API which can either give the 
SequenceFile.writer or a method where in I can pass the user-defined metadata 
so as to be written as part of sequence file header.

The enhancement request an API to implement the same
Creating a Union of two RDD (header + data) and saving as Sequence file is not 
a solution as its not a header. Is there any way I can achieve the same.




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

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

Reply via email to