Skip to content

CzechJiri/hadoop-udf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

hadoop-udf

small collection of random hadoop UDFs, don't expect miracle, just few handy snippets

Version

1.0

Functions

sha1

simple UDF for applying SHA1 + BASE64 on a string

ADD JAR hive-crypto-udfs-1.0.jar;
CREATE TEMPORARY FUNCTION sha1 as 'io.jackass.hadoop.hive.udf.crypto.sha1';
select sha1('1111') from your_table;

I appolgize for not mavenize it yet, here is old school javac using classpath pointing to local CDH 4.2.1

CP=$(find "/opt/cloudera/parcels/CDH/lib" -name '*.jar' -printf '%p:' | sed 's/:$//')
javac -classpath $CP io/jackass/hadoop/hive/udf/crypto/sha1.java
jar -cf hive-crypto-udfs-1.0.jar  -C . .

License

MIT

Free Software, Hell Yeah!

About

collection of hadoop UDFs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages