<?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: DB Inconsistency Issues with HDP 2.6 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195557#M157613</link>
    <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/14115/willemconradie.html" nodeid="14115"&gt;@Willem Conradie&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I did put in some dummy properties for the configs but only managed to get past all the errors by removing Atlas service.&lt;/P&gt;</description>
    <pubDate>Fri, 02 Jun 2017 21:10:13 GMT</pubDate>
    <dc:creator>joshua_adeleke</dc:creator>
    <dc:date>2017-06-02T21:10:13Z</dc:date>
    <item>
      <title>DB Inconsistency Issues with HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195550#M157606</link>
      <description>&lt;P&gt;I had a DB inconsistency error while restarting ambari-server and had to skip database check. The links and ambari updates for the services are not showing anymore. I run ambari 2.5.0.3 on HDP 2.6. Anyone know how to fix this?&lt;/P&gt;&lt;PRE&gt;ERROR - Found tables with engine type that is not InnoDB : [DS_FILERESOURCEITEM_11, DS_FILERESOURCEITEM_5, DS_JOBIMPL_15, DS_JOBIMPL_8, DS_SAVEDQUERY_12, DS_SAVEDQUERY_9, DS_SETTING_14, DS_TESTBEAN_13, DS_TESTBEAN_6, DS_UDF_16, DS_UDF_7]&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2017 16:31:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195550#M157606</guid>
      <dc:creator>joshua_adeleke</dc:creator>
      <dc:date>2017-06-02T16:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: DB Inconsistency Issues with HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195551#M157607</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3938/joshuaadeleke.html" nodeid="3938"&gt;@Joshua Adeleke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, it looks like an issue looks related to: &lt;A href="https://issues.apache.org/jira/browse/AMBARI-18951" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-18951&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/apache/ambari/commit/80084a9d8de9110365c6f1ef68362b502e07cf28" target="_blank"&gt;https://github.com/apache/ambari/commit/80084a9d8de9110365c6f1ef68362b502e07cf28&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;Prior to Ambaei 2.5 some of the DB tables for MySQL might be using the "MyISAM" engin instead of "InnoDB".&lt;/P&gt;&lt;P&gt;As a work around you can try the following approach to fix the issue.&lt;/P&gt;&lt;PRE&gt;# Collect the Ambari DB Dump.
mysqldump -U ambari -p ambari &amp;gt; /PATH/TO/ambari.original.mysql
cp /PATH/TO/ambari.original.mysql /tmp/ambari.innodb.mysql

# Now Replace the engine with INNODB (Earlier it might be MyISAM)
sed -ie 's/MyISAM/INNODB/g' /PATH/TO/ambari.innodb.mysql

# Drop and recreate Ambari DB as following:
mysql -u ambari -p ambari
mysql&amp;gt; DROP DATABASE ambari;
mysql&amp;gt; CREATE DATABASE ambari;

# Import new DB with correct storage engine
mysql -u ambari -pbigdata --force ambari &amp;lt; /PATH/TO/ambari.innodb.mysql&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 16:45:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195551#M157607</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-06-02T16:45:23Z</dc:date>
    </item>
    <item>
      <title>Re: DB Inconsistency Issues with HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195552#M157608</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3938/joshuaadeleke.html" nodeid="3938"&gt;@Joshua Adeleke&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Or alternatively you might have to set the Engine to "InnoDB" as following for all those listed table names in your Mysql db and then restart the ambari server.&lt;/P&gt;&lt;PRE&gt;ALTER TABLE DS_XXXXX ENGINE=InnoDB; &lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;And for some other tables like "ClusterHostMapping", "hostgroup_configuration" etc if not set already.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 16:52:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195552#M157608</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-06-02T16:52:01Z</dc:date>
    </item>
    <item>
      <title>Re: DB Inconsistency Issues with HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195553#M157609</link>
      <description>@&lt;A href="https://community.hortonworks.com/users/3938/joshuaadeleke.html"&gt;Joshua Adeleke&lt;/A&gt;&lt;P style="background-color: initial;"&gt;
&lt;/P&gt;&lt;P style="background-color: initial;"&gt;HDP 2.6 uses the innoDB engine instead of MyISAM  engine in comparison  to earlier versions of HDP till 2.5.3  if you are running Mysql.&lt;/P&gt;&lt;P style="background-color: initial;"&gt;You will need to change the execution engine to InnoDB so run the below statements to check all the tables while logged on as mysql root user you will need &lt;/P&gt;Converting an Existing Table&lt;PRE&gt;SELECT`ENGINE`FROM`information_schema`.`TABLES`WHERE`TABLE_SCHEMA`='your_database_name'AND`TABLE_NAME`='your_table_name';&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;check table engine&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;SHOW TABLE STATUS WHERE Name = 'xxx'&lt;/PRE&gt;&lt;P&gt;Change the execution engine&lt;/P&gt;&lt;PRE&gt;ALTER TABLE my_table ENGINE = InnoDB;&lt;/PRE&gt;&lt;P&gt;Then you can restart your database and the errors shouldn't show.&lt;/P&gt;&lt;P&gt;Hope that helps&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 16:53:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195553#M157609</guid>
      <dc:creator>Shelton</dc:creator>
      <dc:date>2017-06-02T16:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: DB Inconsistency Issues with HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195554#M157610</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; &lt;A rel="user" href="https://community.cloudera.com/users/1271/sheltong.html" nodeid="1271"&gt;@Geoffrey Shelton Okot&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thank you. I have been able to change the affected tables to InnoDB with the ALTER statement. However, on restarting ambari-server, there was another error related to the atlas configs in the clusterconfigmapping table;&lt;/P&gt;&lt;PRE&gt;2017-06-02 13:31:11,549  WARN - You have config(s): [atlas-solrconfig, atlas-logsearch-conf, atlas-env, atlas-log4j, ranger-atlas-security, ranger-atlas-policymgr-ssl, application-properties, ranger-atlas-plugin-properties] that is(are) not mapped (in clusterconfigmapping table) to any cluster!

2017-06-02 13:31:11,560 ERROR - Required config(s): atlas-solrconfig,atlas-logsearch-conf,atlas-env,atlas-log4j,application-properties is(are) not available for service ATLAS with service config version 2 in cluster XXXX

&lt;/PRE&gt;</description>
      <pubDate>Fri, 02 Jun 2017 19:50:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195554#M157610</guid>
      <dc:creator>joshua_adeleke</dc:creator>
      <dc:date>2017-06-02T19:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: DB Inconsistency Issues with HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195555#M157611</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3938/joshuaadeleke.html" nodeid="3938"&gt;@Joshua Adeleke
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Those WARNING messages are related to BUG: &lt;A href="https://issues.apache.org/jira/browse/AMBARI-20875"&gt;https://issues.apache.org/jira/browse/AMBARI-20875&lt;/A&gt; which will be addressed in the Ambari 2.5.2&lt;/P&gt;&lt;P&gt;The ERRORs indicates DB corruption. That needs to be fixed manually.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3938/joshuaadeleke.html" nodeid="3938"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 19:55:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195555#M157611</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-06-02T19:55:25Z</dc:date>
    </item>
    <item>
      <title>Re: DB Inconsistency Issues with HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195556#M157612</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3938/joshuaadeleke.html" nodeid="3938"&gt;@Joshua Adeleke
&lt;/A&gt;&lt;/P&gt;&lt;P&gt;For now the &lt;STRONG&gt;warnigns&lt;/STRONG&gt; can be ignored. (As they will be addressed in Amabri 2.5.2), OR run the SQL queries mentioned in the JIRA to fix the WARNING messages. &lt;A href="https://issues.apache.org/jira/browse/AMBARI-20875"&gt;https://issues.apache.org/jira/browse/AMBARI-20875&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;For the &lt;STRONG&gt;errors&lt;/STRONG&gt; try the following approach to see if this fixes the issue:&lt;/P&gt;&lt;P&gt;
&lt;STRONG&gt;1.  Start the ambari server in "--skip-database-check" mode as following:&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;ambari-server start --skip-database-check&lt;/PRE&gt;&lt;P&gt;
&lt;STRONG&gt;2. Now login to ambari UI and then make some dummy changes to the properties.  For example:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Ambari UI --&amp;gt; "Atlas" --&amp;gt; "Configs" --&amp;gt; "Advanced" --&amp;gt; "Custom application-properties" 
Click on "Add Property ..."   link and then add some dummy properly like&lt;/EM&gt;&lt;/P&gt;&lt;PRE&gt;aaa=bbb&lt;/PRE&gt;&lt;P&gt;
3. Restart ambari server without "--skip-database-check" option and then this time check the error log.  You should not see then&lt;STRONG&gt; "application-properties"&lt;/STRONG&gt; Value in the error if that is fixed.  Same thing you can try with other config types.&lt;/P&gt;&lt;PRE&gt;ERROR - Required config(s): atlas-solrconfig,atlas-logsearch-conf,atlas-env,atlas-log4j is(are) not available for service ATLAS with service config version 2 in cluster XXXX&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/3938/joshuaadeleke.html" nodeid="3938"&gt;&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 20:07:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195556#M157612</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-06-02T20:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: DB Inconsistency Issues with HDP 2.6</title>
      <link>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195557#M157613</link>
      <description>&lt;P&gt;Thanks &lt;A rel="user" href="https://community.cloudera.com/users/3418/jsensharma.html" nodeid="3418"&gt;@Jay SenSharma&lt;/A&gt; and &lt;A rel="user" href="https://community.cloudera.com/users/14115/willemconradie.html" nodeid="14115"&gt;@Willem Conradie&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I did put in some dummy properties for the configs but only managed to get past all the errors by removing Atlas service.&lt;/P&gt;</description>
      <pubDate>Fri, 02 Jun 2017 21:10:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/DB-Inconsistency-Issues-with-HDP-2-6/m-p/195557#M157613</guid>
      <dc:creator>joshua_adeleke</dc:creator>
      <dc:date>2017-06-02T21:10:13Z</dc:date>
    </item>
  </channel>
</rss>

