开发者

register hive udf using hue api

开发者 https://www.devze.com 2023-03-25 22:54 出处:网络
How to register a UDF开发者_StackOverflow by using HUE API? I am using below code but it\'s unable to register it.

How to register a UDF开发者_StackOverflow by using HUE API? I am using below code but it's unable to register it.

Query query1=new Query("create temporary function calculate as 'com.sample.MYUDF'",configuration,hadoop_user);
thriftclient.query(query1);
Query query2=new Query("select calculate('2/23/2010') from dummy",configuration,hadoop_user);
thriftclient.query(query2);

Executing this code throws INVALID FUNCTION calculate on last line.


Check the Query Editor .. Click on the Advanced tab On the left you will find what you require

0

精彩评论

暂无评论...
验证码 换一张
取 消