<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: HBase client failing to connect to Kerberized HBase in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134847#M97506</link>
    <description>&lt;P&gt;Which user did you use to run the code ?&lt;/P&gt;&lt;P&gt;What's the output of the following command ?&lt;/P&gt;&lt;P&gt;klist -kt /etc/security/keytabs/hbase.service.keytab&lt;/P&gt;&lt;P&gt;Normally hbase.service.keytab should be used by user 'hbase'.&lt;/P&gt;&lt;P&gt;Please illustrate your use case in more detail.&lt;/P&gt;&lt;P&gt;Please take a look at &lt;/P&gt;&lt;P&gt;hbase-common/src/main/java/org/apache/hadoop/hbase/AuthUtil.java&lt;/P&gt;</description>
    <pubDate>Sat, 03 Sep 2016 08:57:45 GMT</pubDate>
    <dc:creator>tyu</dc:creator>
    <dc:date>2016-09-03T08:57:45Z</dc:date>
    <item>
      <title>HBase client failing to connect to Kerberized HBase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134846#M97505</link>
      <description>&lt;P&gt;Here is the stacktrace:&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.io.IOException: Login failure for hbase@EXAMPLE.COM from keytab /etc/security/keytabs/hbase.service.keytab    
        at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytabAndReturnUGI(UserGroupInformation.java:1103)                    
        at org.apache.hadoop.security.UserGroupInformation$loginUserFromKeytabAndReturnUGI$0.call(Unknown Source)                              
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)                                              
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)                                              
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)                                              
        at hbase_test.run(hbase_test.groovy:23)                                                                                                
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                        
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)                                                      
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                                              
        at java.lang.reflect.Method.invoke(Method.java:606)                                                                                    
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)                                                            
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)                                                                          
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1215)                                                                    
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1024)                                                                    
        at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod(InvokerHelper.java:923)                                                  
        at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:906)                                                      
        at org.codehaus.groovy.runtime.InvokerHelper.runScript(InvokerHelper.java:410)                                                        
        at org.codehaus.groovy.runtime.InvokerHelper$runScript.call(Unknown Source)                                                            
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:48)                                              
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:113)                                              
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:133)                                              
        at hbase_test.main(hbase_test.groovy)                                                                                                  
Caused by: javax.security.auth.login.LoginException: Unable to obtain password from user                                                      
        at com.sun.security.auth.module.Krb5LoginModule.promptForPass(Krb5LoginModule.java:856)                                                
        at com.sun.security.auth.module.Krb5LoginModule.attemptAuthentication(Krb5LoginModule.java:719)                                        
        at com.sun.security.auth.module.Krb5LoginModule.login(Krb5LoginModule.java:584)                                                        
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)                                                                        
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)                                                      
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)                                              
        at java.lang.reflect.Method.invoke(Method.java:606)                                                                                    
        at javax.security.auth.login.LoginContext.invoke(LoginContext.java:762)                                                                
        at javax.security.auth.login.LoginContext.access$000(LoginContext.java:203)                                                            
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:690)                                                                
        at javax.security.auth.login.LoginContext$4.run(LoginContext.java:688)                                                                
        at java.security.AccessController.doPrivileged(Native Method)                                                                          
        at javax.security.auth.login.LoginContext.invokePriv(LoginContext.java:687)                                                            
        at javax.security.auth.login.LoginContext.login(LoginContext.java:595)                                                                
        at org.apache.hadoop.security.UserGroupInformation.loginUserFromKeytabAndReturnUGI(UserGroupInformation.java:1092)                    
        ... 21 more                                                                                                                            &lt;/P&gt;&lt;P&gt;And this is the relevant part of the client:&lt;/P&gt;&lt;P&gt;Configuration conf = HBaseConfiguration.create();
conf.set("hadoop.security.authentication", "Kerberos");
UserGroupInformation.setConfiguration(conf)
def userInfo = UserGroupInformation.loginUserFromKeytabAndReturnUGI("hbase@EXAMPLE.COM", args[0]);&lt;/P&gt;&lt;P&gt;UserGroupInformation.setLoginUser(userInfo)&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 08:12:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134846#M97505</guid>
      <dc:creator>MikeThomsen</dc:creator>
      <dc:date>2016-09-03T08:12:53Z</dc:date>
    </item>
    <item>
      <title>Re: HBase client failing to connect to Kerberized HBase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134847#M97506</link>
      <description>&lt;P&gt;Which user did you use to run the code ?&lt;/P&gt;&lt;P&gt;What's the output of the following command ?&lt;/P&gt;&lt;P&gt;klist -kt /etc/security/keytabs/hbase.service.keytab&lt;/P&gt;&lt;P&gt;Normally hbase.service.keytab should be used by user 'hbase'.&lt;/P&gt;&lt;P&gt;Please illustrate your use case in more detail.&lt;/P&gt;&lt;P&gt;Please take a look at &lt;/P&gt;&lt;P&gt;hbase-common/src/main/java/org/apache/hadoop/hbase/AuthUtil.java&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 08:57:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134847#M97506</guid>
      <dc:creator>tyu</dc:creator>
      <dc:date>2016-09-03T08:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: HBase client failing to connect to Kerberized HBase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134848#M97507</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/12330/mikerthomsen.html" nodeid="12330"&gt;@Mike Thomsen&lt;/A&gt;&lt;P&gt;hbas user is usually hbase/_HOST@REALM.COM. I don't see the host part of the principal. Is this how you have setup your hbase principal?&lt;/P&gt;&lt;P&gt;What are the permissions on your /etc/security/keytabs/hbase.service.keytab file?&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 09:29:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134848#M97507</guid>
      <dc:creator>mqureshi</dc:creator>
      <dc:date>2016-09-03T09:29:38Z</dc:date>
    </item>
    <item>
      <title>Re: HBase client failing to connect to Kerberized HBase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134849#M97508</link>
      <description>&lt;P&gt;Thanks for the klist suggestion, Ted. That and mqureshi's comment solved it for me.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 21:48:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134849#M97508</guid>
      <dc:creator>MikeThomsen</dc:creator>
      <dc:date>2016-09-03T21:48:11Z</dc:date>
    </item>
    <item>
      <title>Re: HBase client failing to connect to Kerberized HBase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134850#M97509</link>
      <description>&lt;P&gt;And you were correct! It's on an AWS cluster and part of the problem was that the principle had the internal interface associated with it so even when I added what I thought was the right host, didn't work until I followed Ted's advice to use klist.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Sep 2016 21:49:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134850#M97509</guid>
      <dc:creator>MikeThomsen</dc:creator>
      <dc:date>2016-09-03T21:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: HBase client failing to connect to Kerberized HBase</title>
      <link>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134851#M97510</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am using below principals for hbase kerberos authentication:&lt;/P&gt;&lt;PRE&gt;hbase.zookeeper.quorum=localhost
hbase.zookeeper.property.clientPort=2181
hadoop.security.authentication=kerberos
hbase.security.authentication=kerberos
hbase.master.kerberos.principal=zookeeper/localhost@EXAMPLE.COM
hbase.regionserver.kerberos.principal=zookeeper/localhost@EXAMPLE.COM
hbase.kerberos.principal=zookeeper/localhost@EXAMPLE.COM
hbase.kerberos.keytab=zkpr.keytab&lt;/PRE&gt;&lt;P&gt;Now, when i run my spark job on local it is not connecting to hbase, it shows error message:&lt;/P&gt;&lt;P&gt;Unable to connect to zookeeper/localhost@EXAMPLE.COM to zookeeper/localhost@EXAMPLE.COM.&lt;/P&gt;&lt;P&gt;I have done kinit zookeeper/localhost@EXAMPLE.COM -k -t zkpr.keytab and it is running fine.&lt;/P&gt;&lt;P&gt;Any help will be appreciated.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 13:09:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/HBase-client-failing-to-connect-to-Kerberized-HBase/m-p/134851#M97510</guid>
      <dc:creator>p_hasija91</dc:creator>
      <dc:date>2017-05-25T13:09:19Z</dc:date>
    </item>
  </channel>
</rss>

