Creating and running Temporary functions are discouraged while running query on LLAP because of security reason, since many users are
sharing same instances of LLAP, it can create a conflict but still you can create temp functions using add jar and hive.llap.execution.mode=auto.
with exculsive llap execution mode(hive.llap.execution.mode=only) you will run into the ClassNotFoundException, hive.llap.execution.mode=auto will allow
some part of query(map tasks) to run in the tez container.
Here are steps to create custom permanent funtion in LLAP(steps are tested on HDP-260)
- create a jar for UDF funtion (in this case I am using simple udf):
git clone https://github.com/rajkrrsingh/SampleCode