Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> Configuration for hbase client to connect to secure cluster


Copy link to this message
-
Re: Configuration for hbase client to connect to secure cluster
ohk..Rather than doing kinit and then running your java client. Can you try
running your java client by making conf like this:

Configuration conf = HBaseConfiguration.create();
        // security stuff
        if (keytab != null && principal != null){
            keytab = keytab.trim();
            principal = principal.trim();
            if(!keytab.isEmpty() && !principal.isEmpty()){
            conf.set("hbase.myclient.keytab", keytab);
            conf.set("hbase.myclient.principal", principal);
            UserGroupInformation.setConfiguration(conf);
            User.login(conf, "hbase.myclient.keytab",
"hbase.myclient.principal", null);
            }
        }
On Wed, Jun 25, 2014 at 11:00 PM, [EMAIL PROTECTED] <
[EMAIL PROTECTED]> wrote:
Thanks & Regards,
Anil Gupta