Support Questions

Find answers, ask questions, and share your expertise

Managing Hive UDFs Using Ranger

avatar
Master Guru

Which Hive permissions do I need to set if I want to allow some users to use a certain UDF? Available Hive permissions are: create, drop, alter, select, update, index, lock but what I need for UDF is a kind of "allow" . Also, do I have to set "Delegate admin"?

1 ACCEPTED SOLUTION

avatar

This is Hive UDF Allow in Sandbox. And no you do not have to set Delegate Admin.

2180-screen-shot-2016-02-17-at-12658-am.png

View solution in original post

5 REPLIES 5

avatar

This is Hive UDF Allow in Sandbox. And no you do not have to set Delegate Admin.

2180-screen-shot-2016-02-17-at-12658-am.png

avatar
Master Guru

@Ancil McBarnett Thanks for a quick reply. My question is do I have to set all those permissions at the bottom? And in this screenshot "Delegate admin" is checked.

avatar

if you just want to execute it, select is only needed. Remember UDFs are used in DDL and DML in a Hive Statement. So Select means you can use a UDF in a Select Statement in SQL.

avatar
Master Guru

Okay, that makes sense: Accepted!

avatar
New Contributor

Hi, I have hive.server2.enable.doAs set to true.

I have created a hive policy for qaadmin user to have access to only initcap() UDF which is builtin Hive UDF. But qaadmin user can access other built in UDFs too which user should not have access as per Hive Policy.

4197-ranger-hiveudf.jpg

Note- qaadmin is only part of this policy.

Please help me how to make it work ?