Skip to content

sheimi/seqtools-for-hadoop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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;

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published