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
Post a Comment