Maybe i didn't describe my question clearly, i know the hadoop fs command can do it but i need to parse it without hdfs environment, the file is on my disk(for example: D://test.seq), and how to write a java class to parse it?
2011/6/27 Joey Echeverria <j...@cloudera.com> > If the data is text you can always print out the sequence file using > this command: > > hadoop fs -text file:///my/directory/file.seq > > This will parse the sequence file, convert each key and value to a > string and print it to stdout. Notice the file:// in the path, that > will cause hadoop to access the local file system. > > -Joey > > On Mon, Jun 27, 2011 at 5:04 AM, ling cao <ling.c...@gmail.com> wrote: > > hi > > i have a small sequence file (about 1k) which is produced by a hive job, > and > > i need to parse it in my local filesystem,not in hdfs > > is there any easy way to do it ? > > Thanks > > > > > > > > -- > Joseph Echeverria > Cloudera, Inc. > 443.305.9434 >