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
精彩评论