sequencefile-examples/README.md

31 lines
674 B
Markdown
Raw Permalink 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
```
2019-10-11 11:12:36 +02:00
cd /tmp && git clone https://code-repo.d4science.org/D-Net/sequencefile-examples.git
2015-03-04 21:21:13 +01:00
```
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
```