You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Dedunu Dhananjaya (JIRA)" <ji...@apache.org> on 2018/10/15 09:52:00 UTC
[jira] [Commented] (HDFS-7378) There should be a method to quickly
test if a file is a SequenceFile or if a stream contains SequenceFile data
[ 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: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org