<?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: KMS install failing with client not found in kerberos error in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170401#M132705</link>
    <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did you restart ambari server after doing security setup?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
    <pubDate>Sat, 24 Dec 2016 05:16:32 GMT</pubDate>
    <dc:creator>ddharam</dc:creator>
    <dc:date>2016-12-24T05:16:32Z</dc:date>
    <item>
      <title>KMS install failing with client not found in kerberos error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170399#M132703</link>
      <description>&lt;P&gt;if I try to install Ranger KMS in HDP2.5 ,  I am getting the following error in ambari-server.log &lt;/P&gt;&lt;PRE&gt;23 Dec 2016 15:17:30,438  INFO [ambari-client-thread-289] AmbariManagementControllerImpl:2329 - AmbariManagementControllerImpl.createHostAction: created ExecutionCommand for host hadoop1.abc.com, role RANGER_KMS_SERVER, roleCommand INSTALL, and command ID 1834--1, with cluster-env tags version1480534831774
23 Dec 2016 15:17:30,452  WARN [ambari-client-thread-289] MITKerberosOperationHandler:459 - Failed to execute kadmin:
        Command: [/usr/bin/kadmin, -s, hadoop1.abc.com, -p, admin, -r, abc.com, -q, get_principal admin]
        ExitCode: 1
        STDOUT: Authenticating as principal admin with password.
        STDERR: kadmin: Client not found in Kerberos database while initializing kadmin interface
23 Dec 2016 15:17:30,452  INFO [ambari-client-thread-289] AbstractResourceProvider:810 - Caught an exception while updating host components, retrying : java.lang.IllegalArgumentException: Invalid KDC administrator credentials.
The KDC administrator credentials must be set as a persisted or temporary credential resource.This may be done by issuing a POST (or PUT for updating) to the /api/v1/clusters/:clusterName/credentials/kdc.admin.credential API entry point with the following payload:
{
  "Credential" : {
    "principal" : "(PRINCIPAL)", "key" : "(PASSWORD)", "type" : "(persisted|temporary)"}
  }
}
23 Dec 2016 15:17:30,703  INFO [ambari-client-thread-289] AbstractResourceProvider:925 - Received a updateHostComponent request, clusterName=FDOT_Hadoop, serviceName=RANGER_KMS, componentName=RANGER_KMS_SERVER, hostname=hadoop1.abc.com, request={ clusterName=FDOT_Hadoop, serviceName=RANGER_KMS, componentName=RANGER_KMS_SERVER, hostname=hadoop1.abc.com, desiredState=INSTALLED, state=null, desiredStackId=null, staleConfig=null, adminState=null}
^C
[root@hadoop1 ambari-server]# ^C
[root@hadoop1 ambari-server]#

&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Dec 2016 04:23:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170399#M132703</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-24T04:23:52Z</dc:date>
    </item>
    <item>
      <title>Re: KMS install failing with client not found in kerberos error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170400#M132704</link>
      <description>&lt;P&gt;I have already tried this &lt;/P&gt;&lt;PRE&gt;-----
--- To set up Ambari's credential store, the following command must be invoked from the Ambari server host's command line:
--------------------------------------------------------------------------------------------------------------------------
[root@hadoop1 ambari-server]# ambari-server setup-security
Using python  /usr/bin/python
Security setup options...
===========================================================================
Choose one of the following options:
  [1] Enable HTTPS for Ambari server.
  [2] Encrypt passwords stored in ambari.properties file.
  [3] Setup Ambari kerberos JAAS configuration.
  [4] Setup truststore.
  [5] Import certificate to truststore.
===========================================================================
Enter choice, (1-5): 2
Please provide master key for locking the credential store:
Re-enter master key:
Do you want to persist master key. If you choose not to persist, you need to provide the Master Key while starting the ambari server as an env variable named AMBARI_SECURITY_MASTER_KEY or the start will prompt for the master key. Persist [y/n] (y)? y
Adjusting ambari-server permissions and ownership...
Ambari Server 'setup-security' completed successfully.
[root@hadoop1 ambari-server]# ls -ltr /var/lib/ambari-server/keys/credentials.jceks
-rw-r----- 1 root root 503 Dec 23 15:33 /var/lib/ambari-server/keys/credentials.jceks
[root@hadoop1 ambari-server]#

---- TO TEST THE KEY STORED 
---------------------------
[root@hadoop1 ambari-server]# $JAVA_HOME/bin/keytool -list -keystore /var/lib/ambari-server/keys/credentials.jceks -storetype JCEKS
Enter keystore password:
Keystore type: JCEKS
Keystore provider: SunJCE
Your keystore contains 1 entry
ambari.db.password, Dec 23, 2016, SecretKeyEntry,



[root@hadoop1 ambari-server]#
[root@hadoop1 ambari-server]# $JAVA_HOME/bin/keytool -importpass \
 -keystore /var/lib/ambari-server/keys/credentials.jceks \
 -storetype JCEKS \
 -alias cluster.FDOT_hadoop.kdc.admin.credential
Enter keystore password:
Enter the password to be stored:
Re-enter password:
Enter key password for &amp;lt;cluster.FDOT_hadoop.kdc.admin.credential&amp;gt;
        (RETURN if same as keystore password):

&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Dec 2016 04:53:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170400#M132704</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-24T04:53:44Z</dc:date>
    </item>
    <item>
      <title>Re: KMS install failing with client not found in kerberos error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170401#M132705</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/10115/sahmad43.html" nodeid="10115"&gt;@Sami Ahmad&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Did you restart ambari server after doing security setup?&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Deepak&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2016 05:16:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170401#M132705</guid>
      <dc:creator>ddharam</dc:creator>
      <dc:date>2016-12-24T05:16:32Z</dc:date>
    </item>
    <item>
      <title>Re: KMS install failing with client not found in kerberos error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170402#M132706</link>
      <description>&lt;P&gt;yes i did &lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2016 06:06:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170402#M132706</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-24T06:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: KMS install failing with client not found in kerberos error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170403#M132707</link>
      <description>&lt;PRE&gt;java.lang.IllegalArgumentException:Invalid KDC administrator credentials.&lt;/PRE&gt;&lt;P&gt;It appears that your KDC administrator credentials are incorrect.  Please check with the KDC administrator for the correct principal name and password to use. &lt;/P&gt;&lt;P&gt;This issue is not related to the persisted credential store, which can be set up using option #2 in the ambari-server setup-security facility. &lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2016 06:22:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170403#M132707</guid>
      <dc:creator>rlevas</dc:creator>
      <dc:date>2016-12-24T06:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: KMS install failing with client not found in kerberos error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170404#M132708</link>
      <description>&lt;P&gt;but which credential we are talking about ? this error is coming up when I try to install ranger KMS &lt;/P&gt;&lt;P&gt;also  how can I know what is my current KDC administrator credentials ?&lt;/P&gt;</description>
      <pubDate>Sat, 24 Dec 2016 10:23:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170404#M132708</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-24T10:23:48Z</dc:date>
    </item>
    <item>
      <title>Re: KMS install failing with client not found in kerberos error</title>
      <link>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170405#M132709</link>
      <description>&lt;P&gt;I reset the KDC credentials via the "Manage KDC credentials" button in  Kerberos menu and now  Iam getting a slightly different error when I try to reinstall Ranger KMS &lt;/P&gt;&lt;P&gt;my TGT system is working fine for HIVE n HBASE so why ranger KMS cant find the krb5.conf file . .is there a setting in the KMS service for this that might be wrong ?&lt;/P&gt;&lt;PRE&gt;        ... 103 more
23 Dec 2016 22:16:33,131  WARN [ambari-client-thread-837] ServletHandler:561 - Error Processing URI: /api/v1/clusters/FDOT_Hadoop/hosts/hadoop1.abc.com/host_components/RANGER_KMS_SERVER - (java.lang.RuntimeException) Update Host request submission failed: org.apache.ambari.server.AmbariException: The 'krb5-conf' configuration is not available
23 Dec 2016 22:16:33,131  WARN [ambari-client-thread-837] ServletHandler:561 - Error Processing URI: /api/v1/clusters/FDOT_Hadoop/hosts/hadoop1.abc.com/host_components/RANGER_KMS_SERVER - (java.lang.RuntimeException) Update Host request submission failed: org.apache.ambari.server.AmbariException: The 'krb5-conf' configuration is not available

&lt;/PRE&gt;</description>
      <pubDate>Sat, 24 Dec 2016 11:24:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/KMS-install-failing-with-client-not-found-in-kerberos-error/m-p/170405#M132709</guid>
      <dc:creator>aliyesami</dc:creator>
      <dc:date>2016-12-24T11:24:02Z</dc:date>
    </item>
  </channel>
</rss>

