sequencefile-examples/README.md

31 lines
663 B
Markdown
Raw Normal View History

2015-03-04 21:21:13 +01:00
# 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
```
2015-03-04 22:06:20 +01:00
* Build the project
```
cd /tmp/sequencefile-examples && bash -x bin/build.sh
```
2015-03-05 14:37:29 +01:00
* Write a sequence file to HDFS
```
2015-03-05 14:39:33 +01:00
hadoop jar target/sequencefile-examples-0.0.1-SNAPSHOT.jar \
com.github.sakserv.sequencefile.SequenceFileWriter \
/tmp/seqfile_ex/seqfile.seq
2015-03-05 14:37:29 +01:00
```
* Read the sequence file from HDFS
```
2015-03-05 14:39:33 +01:00
hadoop jar target/sequencefile-examples-0.0.1-SNAPSHOT.jar \
com.github.sakserv.sequencefile.SequenceFileReader \
/tmp/seqfile_ex/seqfile.seq
2015-03-05 14:37:29 +01:00
```