/hive-extension-examples

Examples for extending hive

Primary LanguageJava

Hive UDF Examples

This code accompanies this article which walks through creating UDFs in Apache Hive.

Compile

mvn compile

Test

mvn test

Build

mvn assembly:single

Run

%> hive
hive> ADD JAR /path/to/assembled.jar;
hive> create temporary function hello as 'com.matthewrathbone.example.SimpleUDFExample';
hive> select hello(firstname) from people limit 10;