I do not know of an API-side thing that does this, but basically the first three bytes of a given sequence file would be 'S', 'E', 'Q' (which is checked), and following that is a version indicator numeral byte.
A silly (but working) way to use the libs itself to do this would be to construct a Reader object for the file and handle an IOException in case of 'not a sequence file'? On Tue, Mar 22, 2011 at 12:41 PM, maha <[email protected]> wrote: > Hello, > > Is there a way to check if a file foo is a Hadoop SequenceFile ? > > Thanks, > Maha > -- Harsh J http://harshj.com
