It is a sequence file tool for our project.
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
bin/seqtools.py -m convert -s A.tar B.seq
bin/seqtools.py -m convert -s A.seq B.tar
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;