Support Questions
Find answers, ask questions, and share your expertise

Oozie is using oozie user from hue to login in hbase.


Hi everyone,


Here is my problem:


Caused by: org.apache.hadoop.hbase.ipc.RemoteWithExtrasException( Insufficient permissions (user=oozie/XXXXXXX, scope=default, params=[namespace=default,table=default:XX_XX.,family=v],action=CREATE)


And here is my workflow.xml:


<workflow-app name="HBASE_TEST" xmlns="uri:oozie:workflow:0.5">
<credential name="hbase" type="hbase">
<start to="java-2e83"/>
<kill name="Kill">
<message>Action failed, error message[${wf:errorMessage(wf:lastErrorNode())}]</message>
<action name="java-2e83" cred="hbase">
<ok to="End"/>
<error to="Kill"/>
<end name="End"/>

Curent user in hue is not oozie. And this user can explore Hbase using hbase app. Also it can select any information from Hbase using hive. (current user has all privileges in Hbase). 


So, how can I make oozie to use current user to access HBase from java application?


P.S. Hue - 3.7.0, HBase - 1.0.0 and CDH is 5.4.7.







Hi Andrey,

  Did you add hbase-site.xml in the job path ? I just tried on a 5.4 nightly cluster and it worked fine.


Hi Sai-krish,


Of course.




Are your hbase using ACL?







I'm not familiar with HBASE but I don't see 


 in hbase-site.xml

Expert Contributor
I don't believe that Oozie does impersonation for hbase credentials at this time. I will get the community manager to move this thread to the Oozie category as they might be able to confirm.

Master Guru
Oozie does fetch tokens on the user's behalf (when asked for credentials):

Are you getting the error in the Oozie server (when it attempts to obtain the token) or in your Java action log (when your code tries to use the token)?

Could you also share your Java action code snippet that loads the config and uses it for the API work?

Master Guru
I was able to reproduce this, and have logged a bug upstream: