Created 11-22-2016 03:33 AM
error received when trying to create UDF function:
Code:
ADD JAR /home/nbg/mlut.jar
create temporay function mlut as 'hive.udf.mlut'
Error while compiling statement: FAILED: HiveAccessControlException Permission denied: user [sbig] does not have [CREATE] privilege on [mlut]
with kerbores installed
Tried few workaround, but failed:
1.create a temporary tmp folder, and chmod to 777
2. Add the java file to tmp file, and list jars (confirmed file has been added)
3. But still failed.
Created 11-22-2016 03:36 AM
@jeannie tan do you have ranger enabled? if so verify you (userid) has access to create and execute UDF
Created 11-22-2016 03:36 AM
@jeannie tan do you have ranger enabled? if so verify you (userid) has access to create and execute UDF
Created 11-22-2016 03:55 AM
@Sunile Manjee, sorry I'm new to ranger security, what is the command to check the access?
Created 11-22-2016 03:58 AM
Go to ranger UI. the link is found by going to ambari, then to ranger, and click on quick links. that will give you ranger ui. go to hive. check the user policy to determine if there are any policies give you access to UDF.
Another quick way to check if you have ranger enabled is by going to ranger config via ambari and determine if hive plugin is enabled.