<?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 Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster. in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175641#M137898</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;While connecting to hbase in kerberos cluster I'm getting error below,&lt;/P&gt;&lt;P&gt;aused by: java.io.IOException: Couldn't setup connection for hbase/hbase1-devup.mstorm.com@MSTORM.COM to null at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$1.run(RpcClientImpl.java:696) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.handleSaslConnectionFailure(RpcClientImpl.java:668) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:777) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.writeRequest(RpcClientImpl.java:920) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.tracedWriteRequest(RpcClientImpl.java:889) at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1222) at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:213) at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:287) at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:32651) at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:372) at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:199) at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:62) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:346) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:320) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:126) ... 4 more Caused by: java.io.IOException: Failed to specify server's Kerberos principal name at org.apache.hadoop.hbase.security.HBaseSaslRpcClient.&amp;lt;init&amp;gt;(HBaseSaslRpcClient.java:117) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupSaslConnection(RpcClientImpl.java:639) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.access$600(RpcClientImpl.java:166) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$2.run(RpcClientImpl.java:769) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$2.run(RpcClientImpl.java:766) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:766) ... 17 more&lt;/P&gt;&lt;P&gt;My conf files are:-&lt;/P&gt;&lt;P&gt;/etc/krb5.conf&lt;/P&gt;&lt;P&gt;[libdefaults]&lt;/P&gt;&lt;P&gt; renew_lifetime = 7d
  forwardable = true &lt;/P&gt;&lt;P&gt; default_realm = EXAMPLE.COM &lt;/P&gt;&lt;P&gt; ticket_lifetime = 24h &lt;/P&gt;&lt;P&gt; dns_lookup_realm = false &lt;/P&gt;&lt;P&gt; dns_lookup_kdc = false &lt;/P&gt;&lt;P&gt; default_ccache_name = /tmp/krb5cc_%{uid} &lt;/P&gt;&lt;P&gt; #default_tgs_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5 &lt;/P&gt;&lt;P&gt; #default_tkt_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5 &lt;/P&gt;&lt;P&gt;[logging] &lt;/P&gt;&lt;P&gt; default = FILE:/var/log/krb5kdc.log &lt;/P&gt;&lt;P&gt; admin_server = FILE:/var/log/kadmind.log &lt;/P&gt;&lt;P&gt; kdc = FILE:/var/log/krb5kdc.log &lt;/P&gt;&lt;P&gt;[realms] &lt;/P&gt;&lt;P&gt; EXAMPLE.COM = {&lt;/P&gt;&lt;P&gt; admin_server = ambari-server.example.com &lt;/P&gt;&lt;P&gt; kdc = ambari-server.example.com &lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;Please help me in this.&lt;/P&gt;</description>
    <pubDate>Wed, 07 Mar 2018 16:27:44 GMT</pubDate>
    <dc:creator>rohit_khose</dc:creator>
    <dc:date>2018-03-07T16:27:44Z</dc:date>
    <item>
      <title>Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175641#M137898</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;While connecting to hbase in kerberos cluster I'm getting error below,&lt;/P&gt;&lt;P&gt;aused by: java.io.IOException: Couldn't setup connection for hbase/hbase1-devup.mstorm.com@MSTORM.COM to null at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$1.run(RpcClientImpl.java:696) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.handleSaslConnectionFailure(RpcClientImpl.java:668) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:777) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.writeRequest(RpcClientImpl.java:920) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.tracedWriteRequest(RpcClientImpl.java:889) at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1222) at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:213) at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:287) at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:32651) at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:372) at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:199) at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:62) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:346) at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:320) at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:126) ... 4 more Caused by: java.io.IOException: Failed to specify server's Kerberos principal name at org.apache.hadoop.hbase.security.HBaseSaslRpcClient.&amp;lt;init&amp;gt;(HBaseSaslRpcClient.java:117) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupSaslConnection(RpcClientImpl.java:639) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.access$600(RpcClientImpl.java:166) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$2.run(RpcClientImpl.java:769) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$2.run(RpcClientImpl.java:766) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657) at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:766) ... 17 more&lt;/P&gt;&lt;P&gt;My conf files are:-&lt;/P&gt;&lt;P&gt;/etc/krb5.conf&lt;/P&gt;&lt;P&gt;[libdefaults]&lt;/P&gt;&lt;P&gt; renew_lifetime = 7d
  forwardable = true &lt;/P&gt;&lt;P&gt; default_realm = EXAMPLE.COM &lt;/P&gt;&lt;P&gt; ticket_lifetime = 24h &lt;/P&gt;&lt;P&gt; dns_lookup_realm = false &lt;/P&gt;&lt;P&gt; dns_lookup_kdc = false &lt;/P&gt;&lt;P&gt; default_ccache_name = /tmp/krb5cc_%{uid} &lt;/P&gt;&lt;P&gt; #default_tgs_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5 &lt;/P&gt;&lt;P&gt; #default_tkt_enctypes = aes des3-cbc-sha1 rc4 des-cbc-md5 &lt;/P&gt;&lt;P&gt;[logging] &lt;/P&gt;&lt;P&gt; default = FILE:/var/log/krb5kdc.log &lt;/P&gt;&lt;P&gt; admin_server = FILE:/var/log/kadmind.log &lt;/P&gt;&lt;P&gt; kdc = FILE:/var/log/krb5kdc.log &lt;/P&gt;&lt;P&gt;[realms] &lt;/P&gt;&lt;P&gt; EXAMPLE.COM = {&lt;/P&gt;&lt;P&gt; admin_server = ambari-server.example.com &lt;/P&gt;&lt;P&gt; kdc = ambari-server.example.com &lt;/P&gt;&lt;P&gt; }&lt;/P&gt;&lt;P&gt;Please help me in this.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:27:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175641#M137898</guid>
      <dc:creator>rohit_khose</dc:creator>
      <dc:date>2018-03-07T16:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175642#M137899</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/13501/rohitkhose.html"&gt;Rohit Khose&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you share how you installed your Kerberos packages?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;On the KDC server, you MUST have run&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# yum install krb5-server  krb5-libs&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Created the Kerberos databases&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# kdb5_util create -s&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Then start the KDC and kadmin processes on the KDC assuming you are on Centos/redhat 7 &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;$ systemctl enable krb5kdc 
$ systemctl start krb5kdc 
$ systemctl enable kadmin 
$ systemctl start kadmin &lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Create a Kerberos Admin &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;On the KDC server create a KDC admin by creating an admin principal. &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# kadmin.local -q "addprinc admin/admin"&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;And on all the clients you MUST have run &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;# yum install  krb5-libs krb5-workstation&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Your Kerberos config is wrong starting with the  /etc/krb5.conf and it should be copied to all clients hoping you run the kerberos client installation&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;[libdefaults]
  renew_lifetime = 7d
  forwardable = true
  default_realm = $YOUR_REALM
  ticket_lifetime = 24h
  dns_lookup_realm = false
  dns_lookup_kdc = false
  udp_preference_limit=1
[domain_realm]
  your_realm = $YOUR_REALM
  .your_realm = $YOUR_REALM
[logging]
  default = FILE:/var/log/krb5kdc.log
  admin_server = FILE:/var/log/kadmind.log
  kdc = FILE:/var/log/krb5kdc.log
[realms]
  $YOUR_REALM = {
    admin_server = your_kdc.server_FQDN
    kdc = your_kdc.server_FQDN
     }&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Contents of&lt;STRONG&gt; /var/kerberos/krb5kdc/kadm5.acl&lt;/STRONG&gt;: &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;*/admin@$YOUR_REALM *&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;After these steps the run the Ambari Kerberos wizard which will generate the correct keytabs in /&lt;STRONG&gt;etc/security/keytabs/*&lt;/STRONG&gt;  directory if you want a full documentation let me know &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Hope that helps&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 16:56:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175642#M137899</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-03-07T16:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175643#M137900</link>
      <description>&lt;P&gt;@Geoffrey Shelton Okot Thanks for the reply,&lt;/P&gt;&lt;P&gt;I've done the same configuration again, still I'm getting the same error. I've enabled debug logs and I found out below error:-&lt;/P&gt;&lt;P&gt;&amp;gt;&amp;gt;&amp;gt;Pre-Authentication Data: PA-DATA type = 136 &amp;gt;&amp;gt;&amp;gt;Pre-Authentication Data: PA-DATA type = 19 PA-ETYPE-INFO2 etype = 18, salt = MSTORM.COMhbasehbase1-devup.mstorm.com, s2kparams = null PA-ETYPE-INFO2 etype = 23, salt = MSTORM.COMhbasehbase1-devup.mstorm.com, s2kparams = null PA-ETYPE-INFO2 etype = 16, salt = MSTORM.COMhbasehbase1-devup.mstorm.com, s2kparams = null &amp;gt;&amp;gt;&amp;gt;Pre-Authentication Data: PA-DATA type = 2 PA-ENC-TIMESTAMP &amp;gt;&amp;gt;&amp;gt;Pre-Authentication Data: PA-DATA type = 133 &amp;gt;&amp;gt;&amp;gt; KdcAccessibility: remove ambari-devup.mstorm.com &amp;gt;&amp;gt;&amp;gt; KDCRep: init() encoding tag is 126 req type is 11 &amp;gt;&amp;gt;&amp;gt;KRBError: cTime is Sat Aug 28 17:12:22 UTC 2032 1977325942000 sTime is Wed Mar 07 10:15:19 UTC 2018 1520417719000 suSec is 507841 &lt;STRONG&gt;error code is 25 error Message is Additional pre-authentication required&lt;/STRONG&gt; cname is hbase/hbase1-devup.mstorm.com@MSTORM.COM sname is krbtgt/MSTORM.COM@MSTORM.COM eData provided. msgType is 30 &amp;gt;&amp;gt;&amp;gt;Pre-Authentication Data: PA-DATA type = 136 &amp;gt;&amp;gt;&amp;gt;Pre-Authentication Data: PA-DATA type = 19 PA-ETYPE-INFO2 etype = 18, salt = MSTORM.COMhbasehbase1-devup.mstorm.com, &lt;STRONG&gt;s2kparams = null&lt;/STRONG&gt; PA-ETYPE-INFO2 etype = 23, salt = MSTORM.COMhbasehbase1-devup.mstorm.com, s2kparams = null PA-ETYPE-INFO2 etype = 16, salt = MSTORM.COMhbasehbase1-devup.mstorm.com, s2kparams = null &amp;gt;&amp;gt;&amp;gt;Pre-Authentication Data: PA-DATA type = 2 PA-ENC-TIMESTAMP &amp;gt;&amp;gt;&amp;gt;Pre-Authentication Data: PA-DATA type = 133 &lt;STRONG&gt;KRBError received: NEEDED_PREAUTH&lt;/STRONG&gt; KrbAsReqBuilder: PREAUTH FAILED/REQ, re-send AS-REQ&lt;/P&gt;&lt;P&gt;Followed by above error, I'm using sample test example to check whether table present or not in HBase. Following is the example I am using.&lt;/P&gt;&lt;P&gt;package com.hbase; import org.apache.hadoop.conf.Configuration; import org.apache.hadoop.hbase.HBaseConfiguration; import org.apache.hadoop.hbase.TableName; import org.apache.hadoop.hbase.client.Connection; import org.apache.hadoop.hbase.client.ConnectionFactory; import org.apache.hadoop.security.UserGroupInformation; import org.apache.log4j.Level; import org.apache.log4j.Logger; import org.junit.Test; public class HBaseClientTest { @Test public void testingggAuth() throws Exception{ try { Logger.getRootLogger().setLevel(Level.DEBUG); Configuration configuration = HBaseConfiguration.create(); // Zookeeper quorum configuration.set("hbase.zookeeper.quorum", "node1,node2,node3"); configuration.set("hbase.master", "hbase_node:60000"); configuration.set("hbase.zookeeper.property.clientPort", "2181"); configuration.set("hadoop.security.authentication", "kerberos"); configuration.set("hbase.security.authentication", "kerberos"); configuration.set("zookeeper.znode.parent", "/hbase"); //configuration.set("hbase.cluster.distributed", "true"); // check this setting on HBase side //configuration.set("hbase.rpc.protection", "authentication"); //what principal the master/region. servers use. //configuration.set("hbase.regionserver.kerberos.principal", "hbase/_HOST@FIELD.HORTONWORKS.COM"); //configuration.set("hbase.regionserver.keytab.file", "src/hbase.service.keytab"); // // this is needed even if you connect over rpc/zookeeper //configuration.set("hbase.master.kerberos.principal", "_host@REALM"); //configuration.set("hbase.master.keytab.file", "/home/developers/Music/hbase.service.keytab"); System.setProperty("java.security.auth.login.config", "/path/to/hbase_master_jaas.conf"); System.setProperty("java.security.krb5.conf","/etc/krb5.conf"); // Enable/disable krb5 debugging System.setProperty("sun.security.krb5.debug", "true"); String principal = System.getProperty("kerberosPrincipal", "hbase/hbase1-devup.mstorm.com@MSTORM.COM"); String keytabLocation = System.getProperty("kerberosKeytab", "/path/to/hbase.service.keytab"); System.out.println("HEEHH 1111111111111111111"); // kinit with principal and keytab UserGroupInformation.setConfiguration(configuration); UserGroupInformation.loginUserFromKeytab(principal, keytabLocation); //UserGroupInformation.setConfiguration(conf); // UserGroupInformation userGroupInformation = UserGroupInformation.loginUserFromKeytabAndReturnUGI("hbase-ambari_devup@MSTORM.COM", "/path/to/hbase.headless.keytab" ); // UserGroupInformation.setLoginUser(userGroupInformation); System.out.println("HEEHH LOGINNNNNNNNNNNNNNNN1"); Connection connection = ConnectionFactory.createConnection(HBaseConfiguration.create(configuration)); System.out.println("CIONNNNNNNNNNNNNNNNNNNNNNNNNNNNNN"); System.out.println("STATTTTTTTTTTTTTC "+ connection.getAdmin().isTableAvailable(TableName.valueOf("table_name"))); System.out.println("GETDATTTTTTTTTTTTTTTTAAAAAAAAAAAAAAAAAAAAAAAA"); } catch (Exception e) { e.printStackTrace(); } } }&lt;/P&gt;&lt;P&gt;Please help me in this as I am stuck with authenticating the remote connection to hbase in Kerberos enabled cluster. Thank you in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 18:26:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175643#M137900</guid>
      <dc:creator>rohit_khose</dc:creator>
      <dc:date>2018-03-07T18:26:33Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175644#M137901</link>
      <description>&lt;P&gt;&lt;EM&gt; @&lt;A href="https://community.hortonworks.com/users/13501/rohitkhose.html"&gt;Rohit Khose&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To be able to help you can you describe your setup? OS/HDP/Ambari versions&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Can you attach your &lt;STRONG&gt;/etc/krb5.conf&lt;/STRONG&gt;, &lt;STRONG&gt;/var/kerberos/krb5kdc/kadm5.acl &lt;/STRONG&gt;&lt;BR /&gt;Did you install JCE?&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Where is the below FIELD.HORTONWORKS.COM coming from? &lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;hbase.regionserver.kerberos.principal", "hbase/_HOST@FIELD.HORTONWORKS.COM")&lt;/PRE&gt;&lt;P&gt;&lt;EM&gt;Can you also attach the below logs&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/var/log/kadmind.log&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;/var/log/krb5kdc.log&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Did the Ambari Kerberos wizard run successfully?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Mar 2018 19:42:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175644#M137901</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-03-07T19:42:44Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175645#M137902</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt; Now I got following error,&lt;/P&gt;&lt;P&gt;at java.lang.Thread.run(Thread.java:748)
Caused by: java.io.IOException: Couldn't setup connection for hbase/hbase1-devup.mstorm.com@MSTORM.COM to hbase/hbase1-devup.mstorm.com@MSTORM.COM
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$1.run(RpcClientImpl.java:696)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.handleSaslConnectionFailure(RpcClientImpl.java:668)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:777)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.writeRequest(RpcClientImpl.java:920)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.tracedWriteRequest(RpcClientImpl.java:889)
at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1222)
at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:213)
at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:287)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:32651)
at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:372)
at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:199)
at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:62)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:346)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:320)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:126)
at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: org.apache.hadoop.ipc.RemoteException: GSS initiate failed
at org.apache.hadoop.hbase.security.HBaseSaslRpcClient.readStatus(HBaseSaslRpcClient.java:153)
at org.apache.hadoop.hbase.security.HBaseSaslRpcClient.saslConnect(HBaseSaslRpcClient.java:189)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupSaslConnection(RpcClientImpl.java:642)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.access$600(RpcClientImpl.java:166)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$2.run(RpcClientImpl.java:769)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection$2.run(RpcClientImpl.java:766)
at java.security.AccessController.doPrivileged(Native Method)
at javax.security.auth.Subject.doAs(Subject.java:422)
at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.setupIOstreams(RpcClientImpl.java:766)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.writeRequest(RpcClientImpl.java:920)
at org.apache.hadoop.hbase.ipc.RpcClientImpl$Connection.tracedWriteRequest(RpcClientImpl.java:889)
at org.apache.hadoop.hbase.ipc.RpcClientImpl.call(RpcClientImpl.java:1222)
at org.apache.hadoop.hbase.ipc.AbstractRpcClient.callBlockingMethod(AbstractRpcClient.java:213)
at org.apache.hadoop.hbase.ipc.AbstractRpcClient$BlockingRpcChannelImplementation.callBlockingMethod(AbstractRpcClient.java:287)
at org.apache.hadoop.hbase.protobuf.generated.ClientProtos$ClientService$BlockingStub.scan(ClientProtos.java:32651)
at org.apache.hadoop.hbase.client.ScannerCallable.openScanner(ScannerCallable.java:372)
at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:199)
at org.apache.hadoop.hbase.client.ScannerCallable.call(ScannerCallable.java:62)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithoutRetries(RpcRetryingCaller.java:200)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:346)
at org.apache.hadoop.hbase.client.ScannerCallableWithReplicas$RetryingRPC.call(ScannerCallableWithReplicas.java:320)
at org.apache.hadoop.hbase.client.RpcRetryingCaller.callWithRetries(RpcRetryingCaller.java:126)
at org.apache.hadoop.hbase.client.ResultBoundedCompletionService$QueueingFuture.run(ResultBoundedCompletionService.java:64)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Results :
Tests in error: 
  HBaseClientTest.testingggAuth:51 » RetriesExhausted Failed after attempts=36, ...&lt;/P&gt;&lt;P&gt;Please let me know what will be the issue, Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:52:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175645#M137902</guid>
      <dc:creator>rohit_khose</dc:creator>
      <dc:date>2018-03-08T16:52:36Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175646#M137903</link>
      <description>&lt;P&gt;&lt;EM&gt;Where is the below &lt;A href="http://field.hortonworks.com/"&gt;FIELD.HORTONWORKS.COM&lt;/A&gt; coming from? - I am trying with java client example to connect hbase Kerberos cluster, in that example, this field is mentioned. Also I've already installed jce on each node.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 16:56:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175646#M137903</guid>
      <dc:creator>rohit_khose</dc:creator>
      <dc:date>2018-03-08T16:56:57Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175647#M137904</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/13501/rohitkhose.html"&gt;Rohit Khose&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;Precisely the error is because hbase is picking &lt;/P&gt;&lt;PRE&gt;use. //configuration.set("hbase.regionserver.kerberos.principal", "hbase/_HOST@FIELD.HORTONWORKS.COM");&lt;/PRE&gt;&lt;P&gt; Can you run on the kdc server&lt;/P&gt;&lt;PRE&gt;#kadmin.local
listprincs&lt;/PRE&gt;&lt;P&gt;and check the output for hbase also check the &lt;STRONG&gt;/etc/hosts&lt;/STRONG&gt;  entries on your cluster it could be some DNS issue &lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 18:03:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175647#M137904</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-03-08T18:03:19Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175648#M137905</link>
      <description>&lt;P&gt;Output of &lt;/P&gt;&lt;P&gt;#kadmin.local&lt;/P&gt;&lt;P&gt;kadmin.local:  listprincs 
HTTP/ambari-devup.mstorm.com@MSTORM.COM
HTTP/dn1-devup.mstorm.com@MSTORM.COM
HTTP/dn2-devup.mstorm.com@MSTORM.COM
HTTP/dn3-devup.mstorm.com@MSTORM.COM
HTTP/dn4-devup.mstorm.com@MSTORM.COM
HTTP/hbase1-devup.mstorm.com@MSTORM.COM
HTTP/hbase2-devup.mstorm.com@MSTORM.COM
HTTP/snn-devup.mstorm.com@MSTORM.COM
HTTP/zk1-devup.mstorm.com@MSTORM.COM
HTTP/zk2-devup.mstorm.com@MSTORM.COM
HTTP/zk3-devup.mstorm.com@MSTORM.COM
K/M@MSTORM.COM
admin/admin@MSTORM.COM
ambari-qa-ambari_devup@MSTORM.COM
ambari-server-ambari_devup@MSTORM.COM
ambari-server@MSTORM.COM
dn/dn1-devup.mstorm.com@MSTORM.COM
dn/dn2-devup.mstorm.com@MSTORM.COM
dn/dn3-devup.mstorm.com@MSTORM.COM
dn/dn4-devup.mstorm.com@MSTORM.COM
hbase-ambari_devup@MSTORM.COM
hbase/dn1-devup.mstorm.com@MSTORM.COM
hbase/dn2-devup.mstorm.com@MSTORM.COM
hbase/dn3-devup.mstorm.com@MSTORM.COM
hbase/dn4-devup.mstorm.com@MSTORM.COM
&lt;STRONG&gt;hbase/hbase1-devup.mstorm.com@MSTORM.COM
hbase/hbase2-devup.mstorm.com@MSTORM.COM&lt;/STRONG&gt;
hdfs-ambari_devup@MSTORM.COM
hdfs/ambari-devup.mstorm.com@MSTORM.COM
infra-solr/hbase2-devup.mstorm.com@MSTORM.COM
jhs/hbase1-devup.mstorm.com@MSTORM.COM
kadmin/admin@MSTORM.COM
kadmin/ambari-devup.mstorm.com@MSTORM.COM
kadmin/changepw@MSTORM.COM
kafka/zk1-devup.mstorm.com@MSTORM.COM
kafka/zk2-devup.mstorm.com@MSTORM.COM
kafka/zk3-devup.mstorm.com@MSTORM.COM
kiprop/ambari-devup.mstorm.com@MSTORM.COM
krbtgt/MSTORM.COM@MSTORM.COM
livy/ambari-devup.mstorm.com@MSTORM.COM
nfs/dn4-devup.mstorm.com@MSTORM.COM
nm/dn1-devup.mstorm.com@MSTORM.COM
nm/dn2-devup.mstorm.com@MSTORM.COM
nm/dn3-devup.mstorm.com@MSTORM.COM
nm/dn4-devup.mstorm.com@MSTORM.COM
nn/ambari-devup.mstorm.com@MSTORM.COM
nn/hbase2-devup.mstorm.com@MSTORM.COM
rm/ambari-devup.mstorm.com@MSTORM.COM
spark-ambari_devup@MSTORM.COM
yarn/snn-devup.mstorm.com@MSTORM.COM
zeppelin-ambari_devup@MSTORM.COM
zookeeper/zk1-devup.mstorm.com@MSTORM.COM
zookeeper/zk2-devup.mstorm.com@MSTORM.COM &lt;/P&gt;&lt;P&gt;zookeeper/zk3-devup.mstorm.com@MSTORM.COM&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 18:22:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175648#M137905</guid>
      <dc:creator>rohit_khose</dc:creator>
      <dc:date>2018-03-08T18:22:03Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175649#M137906</link>
      <description>&lt;P&gt;I've removed "hbase.regionserver.kerberos.principal" this line from code, still I am getting same error.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 18:22:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175649#M137906</guid>
      <dc:creator>rohit_khose</dc:creator>
      <dc:date>2018-03-08T18:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175650#M137907</link>
      <description>&lt;P&gt;&lt;EM&gt;@&lt;A href="https://community.hortonworks.com/users/13501/rohitkhose.html"&gt;Rohit Khose&lt;/A&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Question you are connecting from a client outside the cluster? Whats the hostname of the client ? &lt;BR /&gt;can you explain how you are executing from the client. Are you using a jaas configuration file?&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 09 Mar 2018 00:18:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175650#M137907</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2018-03-09T00:18:20Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175651#M137908</link>
      <description>&lt;P&gt;I had the same issue with Spark2 and HDP3.1, using Isilon/OneFS as storage instead of HDFS.&lt;/P&gt;&lt;P&gt;The OneFS service management pack doesn't provide configuration for some of the HDFS parameters that are expected by Spark2 (they aren't available at all in Ambari), such as dfs.datanode.kerberos.principal. Without these parameters Spark2 HistoryServer may fail to start and report errors such as "Failed to specify server's principal name".&lt;/P&gt;&lt;P&gt;I added the following properties to OneFS under Custom hdfs-site:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dfs.datanode.kerberos.principal=hdfs/_HOST@&amp;lt;MY REALM&amp;gt;
dfs.datanode.keytab.file=/etc/security/keytabs/hdfs.service.keytab dfs.namenode.kerberos.principal=hdfs/_HOST@&amp;lt;MY REALM&amp;gt;
dfs.namenode.keytab.file=/etc/security/keytabs/hdfs.service.keytab &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This resolved the initial error. Thereafter I was getting an error of the following form:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Server has invalid Kerberos principal: hdfs/&amp;lt;isilon&amp;gt;.my.realm.com@my.realm.com, expecting: hdfs/somewhere.else.entirely@my.realm.com&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This was related to cross-realm authentication. Resolved by adding the below setting to custom hdfs-site:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;dfs.namenode.kerberos.principal.pattern=*&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;(Reposting my answer from &lt;A rel="noopener noreferrer noopener noreferrer" href="https://stackoverflow.com/questions/35325720/connecting-to-kerberrized-hdfs-java-lang-illegalargumentexception-failed-to-s/54926487#54926487" target="_blank"&gt;https://stackoverflow.com/questions/35325720/connecting-to-kerberrized-hdfs-java-lang-illegalargumentexception-failed-to-s/54926487#54926487&lt;/A&gt; )&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 21:21:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175651#M137908</guid>
      <dc:creator>bjorn_olsen</dc:creator>
      <dc:date>2019-02-28T21:21:10Z</dc:date>
    </item>
    <item>
      <title>Re: Failed to specify server's Kerberos principal name, during connecting to hbase in kerboros cluster.</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175652#M137909</link>
      <description>&lt;P&gt;In OPs case, it might be that the hdfs-site files need to be available when trying to connect to HBase. &lt;BR /&gt;If I recall correctly, some HBase clients (such as the NiFi processor) need the Hadoop configuration files core-site and hdfs-site to be specified. If they can't be found or don't have the attributes above, it might cause the same error.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Feb 2019 21:23:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Failed-to-specify-server-s-Kerberos-principal-name-during/m-p/175652#M137909</guid>
      <dc:creator>bjorn_olsen</dc:creator>
      <dc:date>2019-02-28T21:23:31Z</dc:date>
    </item>
  </channel>
</rss>

