Procedure hive custom UDF

Procedure hive custom UDF

Require custom classes and inheritance UDF and achieve specific business logic which method envluate () method, packaged upload Linux (to avoid mistakes packed into RunningJar)

Creating a temporary function:

JAR /udf/xxx.jar 1.Add
2.Create Temporary function mytest AS 'package name class name. "
The display UDF functions Functions like mytest Show
4. delete function temporary drop temporaray function mytest;

Create a permanent function:

1. hdfs jar package uploaded to the directory path
2.Create function mytest AS 'package name. Class name' using jar path / xxx.jar

Published 23 original articles · won praise 0 · Views 1436

Guess you like

Origin blog.csdn.net/weixin_45775343/article/details/103000109