added examples to readme

This commit is contained in:
Shane Kumpf 2015-03-05 06:37:29 -07:00
parent fe8d4458d0
commit 7b0290ad29
1 changed files with 10 additions and 0 deletions

View File

@ -14,3 +14,13 @@ cd /tmp && git clone https://github.com/sakserv/sequencefile-examples.git
```
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
```