hive-extension-examples
hive-extension-examples copied to clipboard
Examples for extending hive
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;