When I use beeline command I was able to add jar libraries but not able to create temporary function but the same works fine when I use hive command. Please let me know if I'm missing anything with permissions.
jdbc:hive2://server:3800> CREATE TEMPORARY FUNCTION arraymerge as 'ArrayComparison';
Error: Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [procesid] does not have [CREATE] privilege on [arraymerge] (state=42000,code=40000)
hive> CREATE TEMPORARY FUNCTION arraymerge as 'ArrayComparison';
Time taken: 0.599 seconds