`UserGroupInformation ugi =
UserGroupInformation.loginUserFromKeytabAndReturnUGI(...)`
and
`UserGroupInformation.setLoginUser(ugi)`
Should be sufficient. You may also need to use a `UGI.doAs()`, e.g.
ugi.doAs(new PrivilegedExceptionAction() {
public Void run() {
Hi,
I am trying to write java code snippet to authenticate hbase using Kerberos,
But I am getting attached exception. I tried all kind of config through code
but no luck.
-Saurabh
---Java Code
HbaseGetPropertyValues properties = new
HbaseGetPropertyValues();
>From the code, looks like you were trying to authenticate as user test.
But from the attached log:
bq. getLoginUser :: root (auth:SIMPLE)
FYI
On Thu, Mar 17, 2016 at 8:33 PM, Saurabh Malviya (samalviy) <
samal...@cisco.com> wrote:
>
>
> Hi,
>
>
>
> I am trying to write java code snippet to