how to pass an external property into a hive udf -


i writing hive udf in have call rest api , return array of string. have written function hardcoded rest api url. make endpoint configurable want take host property out , put in config. possible? if yes, how can pass this?

can change udf take host part of input, , use variable substitution in hive:

set host=todayshosturl select transform ${hiveconf:host}, line  using 'python myudf.py' (line)  yourtable; 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -