<?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: The 'krb5-conf' configuration is not available in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173132#M135413</link>
    <description>&lt;P&gt;so many rows in tables, last version in 'clusterconfigmapping ' table &lt;/P&gt;&lt;PRE&gt;mysql&amp;gt;select * from clusterconfig WHERE type_name in ('kerberos-env', 'krb5-conf'); 

| 1059 | version1490153129291 | 41 | krb5-conf | 2 | 5 | {"domains":"","manage_krb5_conf":"false","conf_dir":"/etc","content":" ***** | 1490153128147 | 
*******
82 rows in set (0.02 sec)

mysql&amp;gt; select * from clusterconfigmapping WHERE type_name in ('kerberos-env', 'krb5-conf'); +--------------+------------------+------------+----------+----------------------+-----------+ 
| type_name | create_timestamp | cluster_id | selected | version_tag | user_name | +--------------+------------------+------------+----------+----------------------+-----------+ | krb5-conf | 1490153128175 | 2 | 0 | version1490153129291 | admin | +--------------+------------------+------------+----------+----------------------+-----------+

mysql&amp;gt; select ccm.type_name, ccm.version_tag, ccm.selected, cc.version_tag from clusterconfigmapping ccm left join clusterconfig cc on ccm.version_tag = cc.version_tag where ccm.selected = 1 and cc.version_tag is NULL; Empty set (0.00 sec)


&lt;/PRE&gt;&lt;P&gt;should i change table 'clusterconfigmapping' ,the column 'selected=1' like this&lt;/P&gt;&lt;PRE&gt;update clusterconfigmapping set select=1 where version_tag='version1490153129291'and type_name='krb5-conf'&lt;/PRE&gt;</description>
    <pubDate>Fri, 24 Mar 2017 10:26:34 GMT</pubDate>
    <dc:creator>jimfrank324</dc:creator>
    <dc:date>2017-03-24T10:26:34Z</dc:date>
    <item>
      <title>The 'krb5-conf' configuration is not available</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173130#M135411</link>
      <description>&lt;P&gt;when i install kerberos with ambari-server ,an error logs&lt;/P&gt;&lt;PRE&gt; ERROR [ambari-client-thread-35] KerberosHelperImpl:1938 - The 'krb5-conf' configuration is not available
  ERROR [ambari-client-thread-35] AbstractResourceProvider:343 - Caught AmbariException when modifying a resource
&lt;/PRE&gt;&lt;P&gt;i open source code of KerberosHelperImpl in  ambari-server . here is the code &lt;/P&gt;&lt;PRE&gt;  Config configKrb5Conf = cluster.getDesiredConfigByType("krb5-conf");
    if (configKrb5Conf == null) {
      String message = "The 'krb5-conf' configuration is not available";
      LOG.error(message);
      throw new AmbariException(message);
    }
&lt;/PRE&gt;&lt;P&gt;then i check krb-conf in ambair server host, two files &lt;/P&gt;&lt;P&gt;first &lt;/P&gt;&lt;PRE&gt;/etc/krb5.conf&lt;/PRE&gt;&lt;P&gt;second&lt;/P&gt;&lt;PRE&gt;/var/lib/ambari-server/resources/scripts/krb5.conf&lt;/PRE&gt;&lt;P&gt;which file ambari-server used , why the error occured&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 11:19:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173130#M135411</guid>
      <dc:creator>jimfrank324</dc:creator>
      <dc:date>2022-09-16T11:19:31Z</dc:date>
    </item>
    <item>
      <title>Re: The 'krb5-conf' configuration is not available</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173131#M135412</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16710/jimfrank324.html" nodeid="16710"&gt;@Elvis Zhang&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Your issue looks similar to: &lt;A href="https://issues.apache.org/jira/browse/AMBARI-16379" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-16379&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Can you please run the following SQL command on your ambari database to se eof the &lt;STRONG&gt;"selected=1"  &lt;/STRONG&gt;or not for the krb5-conf&lt;/P&gt;&lt;PRE&gt;sql&amp;gt;  select * from clusterconfig WHERE type_name in ('kerberos-env', 'krb5-conf'); 
sql&amp;gt;  select * from clusterconfigmapping WHERE type_name in ('kerberos-env', 'krb5-conf'); 
sql&amp;gt;  select ccm.type_name, ccm.version_tag, ccm.selected, cc.version_tag from clusterconfigmapping ccm left join clusterconfig cc on ccm.version_tag = cc.version_tag where ccm.selected = 1 and cc.version_tag is NULL;
&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;You might need to run the following SQL queries in the ambari DB in order to see if it fixes your issue:&lt;/P&gt;&lt;P&gt;1. Find the latest version tag for "krb5-conf" using select query and then run the following command. Suppose if you found that the latest version tag for krb5-conf was "version1490320959000"  (sothat you choose the latest version) in the DB then try setting it selected = 0 / 1 accordingly.&lt;/P&gt;&lt;P&gt;
2. Restart ambari -server.&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 08:59:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173131#M135412</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-24T08:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: The 'krb5-conf' configuration is not available</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173132#M135413</link>
      <description>&lt;P&gt;so many rows in tables, last version in 'clusterconfigmapping ' table &lt;/P&gt;&lt;PRE&gt;mysql&amp;gt;select * from clusterconfig WHERE type_name in ('kerberos-env', 'krb5-conf'); 

| 1059 | version1490153129291 | 41 | krb5-conf | 2 | 5 | {"domains":"","manage_krb5_conf":"false","conf_dir":"/etc","content":" ***** | 1490153128147 | 
*******
82 rows in set (0.02 sec)

mysql&amp;gt; select * from clusterconfigmapping WHERE type_name in ('kerberos-env', 'krb5-conf'); +--------------+------------------+------------+----------+----------------------+-----------+ 
| type_name | create_timestamp | cluster_id | selected | version_tag | user_name | +--------------+------------------+------------+----------+----------------------+-----------+ | krb5-conf | 1490153128175 | 2 | 0 | version1490153129291 | admin | +--------------+------------------+------------+----------+----------------------+-----------+

mysql&amp;gt; select ccm.type_name, ccm.version_tag, ccm.selected, cc.version_tag from clusterconfigmapping ccm left join clusterconfig cc on ccm.version_tag = cc.version_tag where ccm.selected = 1 and cc.version_tag is NULL; Empty set (0.00 sec)


&lt;/PRE&gt;&lt;P&gt;should i change table 'clusterconfigmapping' ,the column 'selected=1' like this&lt;/P&gt;&lt;PRE&gt;update clusterconfigmapping set select=1 where version_tag='version1490153129291'and type_name='krb5-conf'&lt;/PRE&gt;</description>
      <pubDate>Fri, 24 Mar 2017 10:26:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173132#M135413</guid>
      <dc:creator>jimfrank324</dc:creator>
      <dc:date>2017-03-24T10:26:34Z</dc:date>
    </item>
    <item>
      <title>Re: The 'krb5-conf' configuration is not available</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173133#M135414</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16710/jimfrank324.html" nodeid="16710"&gt;@Elvis Zhang
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The table output is so jumbled so i am not able to understand it clearly.  But it is easy to take a table backup. like&lt;/P&gt;&lt;PRE&gt;sql&amp;gt; CREATE TABLE clusterconfigmapping_OLD as SELECT * FROM clusterconfigmapping;
sql&amp;gt; Select * from clusterconfigmapping_OLD;&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;If you see that te table back up is successful then try updating the table as per your previous command (make sure to commit the changes)  and then restart ambari server to see how it goes. As you already have the table backup.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/16710/jimfrank324.html" nodeid="16710"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 10:32:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173133#M135414</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-03-24T10:32:25Z</dc:date>
    </item>
    <item>
      <title>Re: The 'krb5-conf' configuration is not available</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173134#M135415</link>
      <description>&lt;P&gt;thanks Jay very much! i works ;what's the reason of this error&lt;/P&gt;</description>
      <pubDate>Fri, 24 Mar 2017 10:39:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/173134#M135415</guid>
      <dc:creator>jimfrank324</dc:creator>
      <dc:date>2017-03-24T10:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: The 'krb5-conf' configuration is not available</title>
      <link>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/296333#M218197</link>
      <description>&lt;P&gt;I faced similar issue, but REST api thru -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P data-unlink="true"&gt;http://localhost:8080/api/v1/cluster/[cluster_name]/services/KERBEROS&amp;nbsp;&lt;/P&gt;&lt;P&gt;was not available, and kerberos remove was giving error - "The 'krb5-conf' configuration is not available" in ambari-server.log&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We had Ambari 2.7.5.0. In that version clusterconfigmapping is not present, we had to do below procedure:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In ambari db -&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;psql -U ambari -d ambari&lt;BR /&gt;&lt;/SPAN&gt;(default password: bigdata)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;ambari=&amp;gt; select config_id, selected, create_timestamp from clusterconfig where type_name in ('kerberos-env', 'krb5-conf');&lt;BR /&gt;config_id | selected | create_timestamp&lt;BR /&gt;-----------+----------+------------------&lt;BR /&gt;352 | 0 | 1589796215822&lt;BR /&gt;452 | 0 | 1589800820822 &amp;lt;&amp;lt; Select the record with latest timestamp&lt;BR /&gt;353 | 0 | 1589796215857&lt;BR /&gt;453 | 0 | 1589800820858 &amp;lt;&amp;lt;Select the record with latest timestamp&lt;BR /&gt;(4 rows)&lt;BR /&gt;&lt;BR /&gt;ambari=&amp;gt; update clusterconfig set selected=1 where config_id=452;&lt;BR /&gt;UPDATE 1&lt;BR /&gt;ambari=&amp;gt; update clusterconfig set selected=1 where config_id=453;&lt;BR /&gt;UPDATE 1&lt;BR /&gt;ambari=&amp;gt;&lt;BR /&gt;&lt;BR /&gt;update clusterconfig set selected=1 where config_id=452;&lt;BR /&gt;update clusterconfig set selected=1 where config_id=453;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;* Still the kerberos REST api was not been shown.&lt;/P&gt;&lt;P&gt;* Remove the kerberos&lt;/P&gt;&lt;P&gt;* Add kerberos back&lt;/P&gt;</description>
      <pubDate>Wed, 20 May 2020 18:51:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/The-krb5-conf-configuration-is-not-available/m-p/296333#M218197</guid>
      <dc:creator>pushkarajthorat</dc:creator>
      <dc:date>2020-05-20T18:51:37Z</dc:date>
    </item>
  </channel>
</rss>

