Re: Kerberos auth using java exception

2016-03-21 Thread Josh Elser
`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() {

Kerberos auth using java exception

2016-03-19 Thread Saurabh Malviya (samalviy)
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();

Re: Kerberos auth using java exception

2016-03-19 Thread Ted Yu
>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