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

Dedunu Dhananjaya commented on HDFS-7378:
-----------------------------------------

+1

> There should be a method to quickly test if a file is a SequenceFile or if a 
> stream contains SequenceFile data
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: HDFS-7378
>                 URL: https://issues.apache.org/jira/browse/HDFS-7378
>             Project: Hadoop HDFS
>          Issue Type: New Feature
>            Reporter: Jens Rabe
>            Priority: Trivial
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> Currently, to check whether a file is a SequenceFile or a stream contains 
> data in SequenceFile format, one either has to check the message of the 
> thrown exception when opening a file with SequenceFile.Reader, or has to 
> check the first four bytes by him/herself.
> A utility method like SequenceFile.isSequenceFile would be very handy here.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to