Skip to content
No description or website provided.
Java Shell Python C++ C
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
.settings
conf
native
seq-bin
src/me/sheimi
.classpath
.gitignore
.project
README.md
build.xml

README.md

SEQ TOOLS

Overview

It is a sequence file tool for our project.

Depencency

ant.jar                       commons-lang-2.4.jar          hadoop-core-1.0.3.jar         log4j-1.2.15.jar
protobuf-java-2.4.0a.jar      slf4j-log4j12-1.4.3.jar       commons-configuration-1.6.jar commons-logging-1.1.1.jar
hbase-0.94.1.jar              pig-0.10.0.jar                slf4j-api-1.4.3.jar           zookeeper-3.4.3.jar

Examples

Convert Image Storage Format

bin/seqtools.py -m convert -s A.tar B.seq
bin/seqtools.py -m convert -s A.seq B.tar

Pig Latin

register seqtools.jar;
a = LOAD '/seq_test'  USING me.sheimi.pig.storage.SequenceFileLoader AS (name, data);
b = foreach a generate name;
-- Java
c = foreach a generate name, me.sheimi.pig.eval.demo.ToBMP(data);
-- Native (CPP and OpenCV)
-- should copy libcvjni.so to java.library.path
c = foreach a generate name, me.sheimi.pig.eval.BytesNativeEvalFunc(data);
store c into '/output' using me.sheimi.pig.storage.SequenceFileStorage;
Something went wrong with that request. Please try again.