<?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: ambari-server mysql schema database upgrade from 2.2.2 to 2.4.1 fails in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-mysql-schema-database-upgrade-from-2-2-2-to-2/m-p/169789#M45690</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/13757/pradheep86.html"&gt;Pradheep Shan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Good to know that your issue is resolved.&lt;/P&gt;&lt;P&gt;For the issue&lt;STRONG&gt; [Duplicate key name 'hstcmpnntdesiredstatecmpnntnme'&lt;/STRONG&gt;&lt;STRONG&gt;] &lt;/STRONG&gt; i guess you should file an Ambari bug. &lt;/P&gt;&lt;P&gt;Regarding grafana UI has a bug. I am not sure when exactly you are getting that error.  May be as part of a separate Discussion thread we can discuss about that.&lt;/P&gt;</description>
    <pubDate>Wed, 09 Nov 2016 23:19:25 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2016-11-09T23:19:25Z</dc:date>
    <item>
      <title>ambari-server mysql schema database upgrade from 2.2.2 to 2.4.1 fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-mysql-schema-database-upgrade-from-2-2-2-to-2/m-p/169786#M45687</link>
      <description>&lt;P&gt;i get below error when i upgraded the mysql schema &lt;/P&gt;&lt;P&gt;[root@hbase-perf-amb yum.repos.d]# ambari-server upgrade&lt;/P&gt;&lt;P&gt;Using python  /usr/bin/python&lt;/P&gt;&lt;P&gt;Upgrading ambari-server&lt;/P&gt;&lt;P&gt;Updating properties in ambari.properties ...&lt;/P&gt;&lt;P&gt;WARNING: Original file ambari-env.sh kept&lt;/P&gt;&lt;P&gt;Fixing database objects owner&lt;/P&gt;&lt;P&gt;Ambari Server configured for MySQL. Confirm you have made a backup of the Ambari Server database [y/n] (y)? y&lt;/P&gt;&lt;P&gt;Upgrading database schema&lt;/P&gt;&lt;P&gt;Error output from schema upgrade command:&lt;/P&gt;&lt;P&gt;Exception in thread "main" org.apache.ambari.server.AmbariException: Duplicate key name 'hstcmpnntdesiredstatecmpnntnme'&lt;/P&gt;&lt;P&gt;at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:207)&lt;/P&gt;&lt;P&gt;at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.main(SchemaUpgradeHelper.java:347)&lt;/P&gt;&lt;P&gt;Caused by: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Duplicate key name 'hstcmpnntdesiredstatecmpnntnme'&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)&lt;/P&gt;&lt;P&gt;at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)&lt;/P&gt;&lt;P&gt;at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)&lt;/P&gt;&lt;P&gt;at java.lang.reflect.Constructor.newInstance(Constructor.java:526)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.Util.handleNewInstance(Util.java:411)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.Util.getInstance(Util.java:386)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1052)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3597)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3529)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1990)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2151)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2619)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2569)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:824)&lt;/P&gt;&lt;P&gt;at com.mysql.jdbc.StatementImpl.execute(StatementImpl.java:667)&lt;/P&gt;&lt;P&gt;at org.apache.ambari.server.orm.DBAccessorImpl.executeQuery(DBAccessorImpl.java:827)&lt;/P&gt;&lt;P&gt;at org.apache.ambari.server.orm.DBAccessorImpl.addFKConstraint(DBAccessorImpl.java:472)&lt;/P&gt;&lt;P&gt;at org.apache.ambari.server.orm.DBAccessorImpl.addFKConstraint(DBAccessorImpl.java:456)&lt;/P&gt;&lt;P&gt;at org.apache.ambari.server.upgrade.UpgradeCatalog240.updateServiceComponentDesiredStateTableDDL(UpgradeCatalog240.java:1630)&lt;/P&gt;&lt;P&gt;at org.apache.ambari.server.upgrade.UpgradeCatalog240.executeDDLUpdates(UpgradeCatalog240.java:303)&lt;/P&gt;&lt;P&gt;at org.apache.ambari.server.upgrade.AbstractUpgradeCatalog.upgradeSchema(AbstractUpgradeCatalog.java:889)&lt;/P&gt;&lt;P&gt;at org.apache.ambari.server.upgrade.SchemaUpgradeHelper.executeUpgrade(SchemaUpgradeHelper.java:204)&lt;/P&gt;&lt;P&gt;... 1 more&lt;/P&gt;&lt;P&gt;Please suggest how this can be resolved..&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 05:33:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-mysql-schema-database-upgrade-from-2-2-2-to-2/m-p/169786#M45687</guid>
      <dc:creator>pradheep86</dc:creator>
      <dc:date>2016-11-09T05:33:12Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server mysql schema database upgrade from 2.2.2 to 2.4.1 fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-mysql-schema-database-upgrade-from-2-2-2-to-2/m-p/169787#M45688</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/13757/pradheep86.html"&gt;Pradheep Shan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Try to drop that constraint from your ambari database as following, then continue the upgrade and then add the constraint back to the table.&lt;/P&gt;&lt;PRE&gt;ALTER TABLE hostcomponentdesiredstate drop foreign key hstcmpnntdesiredstatecmpnntnme;
flush privileges&lt;/PRE&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 11:49:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-mysql-schema-database-upgrade-from-2-2-2-to-2/m-p/169787#M45688</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-09T11:49:00Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server mysql schema database upgrade from 2.2.2 to 2.4.1 fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-mysql-schema-database-upgrade-from-2-2-2-to-2/m-p/169788#M45689</link>
      <description>&lt;P&gt;@jss. Thank you for the reply. The solution worked as you suggested. &lt;/P&gt;&lt;P&gt;Should the upgrade package has to be fixed or the upgrade from 2.2.2 to 2.4.1 is not supported/tested?&lt;/P&gt;&lt;P&gt;Also the grafana UI has a bug, &lt;/P&gt;&lt;P&gt;"Problem!
java.lang.Exception: Invalid number of functions specified."&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 23:15:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-mysql-schema-database-upgrade-from-2-2-2-to-2/m-p/169788#M45689</guid>
      <dc:creator>pradheep86</dc:creator>
      <dc:date>2016-11-09T23:15:42Z</dc:date>
    </item>
    <item>
      <title>Re: ambari-server mysql schema database upgrade from 2.2.2 to 2.4.1 fails</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-mysql-schema-database-upgrade-from-2-2-2-to-2/m-p/169789#M45690</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/13757/pradheep86.html"&gt;Pradheep Shan&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Good to know that your issue is resolved.&lt;/P&gt;&lt;P&gt;For the issue&lt;STRONG&gt; [Duplicate key name 'hstcmpnntdesiredstatecmpnntnme'&lt;/STRONG&gt;&lt;STRONG&gt;] &lt;/STRONG&gt; i guess you should file an Ambari bug. &lt;/P&gt;&lt;P&gt;Regarding grafana UI has a bug. I am not sure when exactly you are getting that error.  May be as part of a separate Discussion thread we can discuss about that.&lt;/P&gt;</description>
      <pubDate>Wed, 09 Nov 2016 23:19:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/ambari-server-mysql-schema-database-upgrade-from-2-2-2-to-2/m-p/169789#M45690</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-11-09T23:19:25Z</dc:date>
    </item>
  </channel>
</rss>

