<?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: upgrading from ambari 2.1.2 to 2.2 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100656#M63667</link>
    <description>&lt;P&gt;I had to roll back to the previous ambari version fearing that I may have hit a bug with 2.2.  I looked at the table you mention, and I found one type that has two rows. hdfs-log4j.  Maybe that was the problem.  thanks for the Tip.  I will try to update again. &lt;/P&gt;</description>
    <pubDate>Fri, 25 Dec 2015 00:13:20 GMT</pubDate>
    <dc:creator>hafaouaz</dc:creator>
    <dc:date>2015-12-25T00:13:20Z</dc:date>
    <item>
      <title>upgrading from ambari 2.1.2 to 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100652#M63663</link>
      <description>&lt;P&gt;When I run ambari-server upgrade,   I get contrainst error:&lt;/P&gt;&lt;P&gt;Batch entry 1 INSERT INTO serviceconfigmapping (config_id, service_config_id) VALUES (3, 290) was aborted.  Call getNextException to see the cause.&lt;/P&gt;&lt;P&gt;this table in in the db, has no dups.&lt;/P&gt;&lt;P&gt;thanks &lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 07:21:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100652#M63663</guid>
      <dc:creator>hafaouaz</dc:creator>
      <dc:date>2015-12-24T07:21:25Z</dc:date>
    </item>
    <item>
      <title>Re: upgrading from ambari 2.1.2 to 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100653#M63664</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1770/hfaouaz-1.html" nodeid="1770"&gt;@Hassan Faouaz&lt;/A&gt;  oracle or postgres?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 07:22:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100653#M63664</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-12-24T07:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: upgrading from ambari 2.1.2 to 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100654#M63665</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/1770/hfaouaz-1.html" nodeid="1770"&gt;@Hassan Faouaz&lt;/A&gt;&lt;P&gt; the ambari-server log (/var/log/ambari-server/ambari-server.log) should have some more details. Can you share that?&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 07:28:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100654#M63665</guid>
      <dc:creator>smohanty</dc:creator>
      <dc:date>2015-12-24T07:28:49Z</dc:date>
    </item>
    <item>
      <title>Re: upgrading from ambari 2.1.2 to 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100655#M63666</link>
      <description>&lt;P&gt;Did you attempt and abort an upgrade already? &lt;/P&gt;&lt;P&gt;Can you please check the clusterconfigmapping table in the Ambari DB and make sure there are no duplicates in the type_name column? &lt;/P&gt;&lt;P&gt;If there are, and then make sure that only 1 of them has a value of "1" in the "selected" column - the one with a later created_timestamp value. Take a backup of the Ambari DB (!!) and then update the "selected" value to 0 for the other one. Then re-attempt the upgrade.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Dec 2015 20:48:15 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100655#M63666</guid>
      <dc:creator>agillan</dc:creator>
      <dc:date>2015-12-24T20:48:15Z</dc:date>
    </item>
    <item>
      <title>Re: upgrading from ambari 2.1.2 to 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100656#M63667</link>
      <description>&lt;P&gt;I had to roll back to the previous ambari version fearing that I may have hit a bug with 2.2.  I looked at the table you mention, and I found one type that has two rows. hdfs-log4j.  Maybe that was the problem.  thanks for the Tip.  I will try to update again. &lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2015 00:13:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100656#M63667</guid>
      <dc:creator>hafaouaz</dc:creator>
      <dc:date>2015-12-25T00:13:20Z</dc:date>
    </item>
    <item>
      <title>Re: upgrading from ambari 2.1.2 to 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100657#M63668</link>
      <description>&lt;P&gt;Thanks Neeraj.  Please look at &lt;A rel="user" href="https://community.cloudera.com/users/214/agillan.html" nodeid="214"&gt;@Ana Gillan&lt;/A&gt; answer.  &lt;/P&gt;</description>
      <pubDate>Fri, 25 Dec 2015 00:14:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100657#M63668</guid>
      <dc:creator>hafaouaz</dc:creator>
      <dc:date>2015-12-25T00:14:01Z</dc:date>
    </item>
    <item>
      <title>Re: upgrading from ambari 2.1.2 to 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100658#M63669</link>
      <description>&lt;P&gt;Hassan, can you provide the output after running this?&lt;/P&gt;&lt;PRE&gt;select u.upgrade_id, u.from_version, u.to_version, u.direction, u.upgrade_type, s.stage_id, s.supports_auto_skip_failure, SUBSTR(s.request_context, 0, 40) FROM upgrade u JOIN stage s ON u.request_id = s.request_id ORDER BY s.stage_id ASC;&lt;/PRE&gt;&lt;P&gt;Also, can you run a describe on the stage table? Here's what my table looks like,&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; \d stage
                           Table "ambari.stage"
           Column           |          Type          |     Modifiers
----------------------------+------------------------+--------------------
 stage_id                   | bigint                 | not null
 request_id                 | bigint                 | not null
 cluster_id                 | bigint                 | not null
 skippable                  | smallint               | not null default 0
 supports_auto_skip_failure | smallint               | not null default 0
 log_info                   | character varying(255) | not null
 request_context            | character varying(255) |
 cluster_host_info          | bytea                  | not null
 command_params             | bytea                  |
 host_params                | bytea                  |
Indexes:
    "stage_pkey" PRIMARY KEY, btree (stage_id, request_id)
Foreign-key constraints:
    "fk_stage_request_id" FOREIGN KEY (request_id) REFERENCES request(request_id)
Referenced by:
    TABLE "host_role_command" CONSTRAINT "fk_host_role_command_stage_id" FOREIGN KEY (stage_id, request_id) REFERENCES stage(stage_id, request_id)
    TABLE "role_success_criteria" CONSTRAINT "role_success_criteria_stage_id" FOREIGN KEY (stage_id, request_id) REFERENCES stage(stage_id, request_id)&lt;/PRE&gt;</description>
      <pubDate>Tue, 29 Dec 2015 01:21:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100658#M63669</guid>
      <dc:creator>afernandez</dc:creator>
      <dc:date>2015-12-29T01:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: upgrading from ambari 2.1.2 to 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100659#M63670</link>
      <description>&lt;P&gt;Even if there are 2 rows in clusterconfigmapping for a config type, you should check if there are more than one entry with selected=1. If you can share the DB dump along with ambari-server log that would help. &lt;/P&gt;</description>
      <pubDate>Tue, 29 Dec 2015 01:55:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/upgrading-from-ambari-2-1-2-to-2-2/m-p/100659#M63670</guid>
      <dc:creator>jluniya</dc:creator>
      <dc:date>2015-12-29T01:55:58Z</dc:date>
    </item>
  </channel>
</rss>

