Hi.
When I get this exception I usually set
System.setProperty("java.security.krb5.conf", krbfilepath); in my client code.
Where krbfilepath is path to krb5.conf file.
Regards
-----Original Message-----
From: AnandaVelMurugan Chandra Mohan [mailto:[email protected]]
Sent: 10 December 2014 15:41
To: [email protected]
Subject: Re: Reg. HBase client API calls in secure cluster (Kerberos)
Hi,
Thanks for responding back. But I get this error now
Failure to initialize security context [Caused by GSSException: Invalid name
provided (Mechanism level: Could not load configuration file
C:\Windows\krb5.ini (The system cannot find the file specified))]
My problem is very similar to this stackflow question
http://stackoverflow.com/questions/21193453/how-to-access-secure-kerberized-hadoop-using-just-java-api
Basically I want to run the examples in this link
http://java.dzone.com/articles/handling-big-data-hbase-part-4 against my secure
cluster.
Regards,
Anand
On Wed, Dec 10, 2014 at 11:58 AM, Srikanth Srungarapu <[email protected]
> wrote:
> Hi,
> Please take a look at the patch added as part of HBASE-12366
> <https://issues.apache.org/jira/browse/HBASE-12366>. There will be a
> new AuthUtil. launchAuthChore() which should help in your case. And
> also, the documentation patch is here HBASE-12528
> <https://issues.apache.org/jira/browse/HBASE-12528> just in case. Hope
> this helps.
> Thanks,
> Srikanth.
>
> On Tue, Dec 9, 2014 at 10:11 PM, AnandaVelMurugan Chandra Mohan <
> [email protected]> wrote:
>
> > Hi All,
> >
> > My Hbase admin has set up kerberos authentication in our cluster.
> > Now all the HBase Java client API calls hang indefinitely.
> > I could scan/get in HBase shell, but when I do the same through the
> > java api,it hangs in the scan statement.
> >
> > This is code which was working earlier, but not now. Earlier I was
> running
> > this code outside of the cluster without any impersonation.
> >
> > Configuration config = HBaseConfiguration.create(); HTable table =
> > new HTable(config, "Assets"); Scan Scan = new Scan(); ResultScanner
> > results = table.getScanner(Scan);
> >
> > Do I need to impersonate as any super user to make this work now?
> > How do
> I
> > pass the kerberos credentials? Any pointers would be greatly appreciated.
> > --
> > Regards,
> > Anand
> >
>
--
Regards,
Anand