Go to file
Shane Kumpf 7b0290ad29 added examples to readme 2015-03-05 06:37:29 -07:00
.idea initial project layout and tests 2015-03-04 13:51:19 -07:00
bin added build script 2015-03-04 14:06:20 -07:00
src split out reader and writer 2015-03-05 06:29:44 -07:00
test/main/java/com/github/sakserv/sequencefile added sample 2015-03-05 06:19:07 -07:00
.gitignore added readme, gitignore and pom 2015-03-04 13:21:13 -07:00
LICENSE Initial commit 2015-03-04 11:13:02 -07:00
README.md added examples to readme 2015-03-05 06:37:29 -07:00
pom.xml split out reader and writer 2015-03-05 06:29:44 -07:00
sequencefile-examples.iml added sample 2015-03-05 06:19:07 -07:00

README.md

sequencefile-examples

A collection of examples of working with sequence files

Setup:

  • Clone the project
cd /tmp && git clone https://github.com/sakserv/sequencefile-examples.git
  • Build the project
cd /tmp/sequencefile-examples && bash -x bin/build.sh
  • Write a sequence file to HDFS
hadoop jar target/sequencefile-examples-0.0.1-SNAPSHOT.jar com.github.sakserv.sequencefile.SequenceFileWriter /tmp/seqfile_ex/seqfile.seq
  • Read the sequence file from HDFS
hadoop jar target/sequencefile-examples-0.0.1-SNAPSHOT.jar com.github.sakserv.sequencefile.SequenceFileReader /tmp/seqfile_ex/seqfile.seq