Return-Path: X-Original-To: apmail-ambari-user-archive@www.apache.org Delivered-To: apmail-ambari-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id A512418919 for ; Wed, 16 Dec 2015 12:55:21 +0000 (UTC) Received: (qmail 74289 invoked by uid 500); 16 Dec 2015 12:55:21 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 74259 invoked by uid 500); 16 Dec 2015 12:55:21 -0000 Mailing-List: contact user-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@ambari.apache.org Delivered-To: mailing list user@ambari.apache.org Received: (qmail 74240 invoked by uid 500); 16 Dec 2015 12:55:21 -0000 Delivered-To: apmail-incubator-ambari-user@incubator.apache.org Received: (qmail 74234 invoked by uid 99); 16 Dec 2015 12:55:21 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Dec 2015 12:55:21 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 9A23018022F; Wed, 16 Dec 2015 12:55:20 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.129 X-Spam-Level: *** X-Spam-Status: No, score=3.129 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id cUYNfuS4RcO5; Wed, 16 Dec 2015 12:55:19 +0000 (UTC) Received: from mail-qk0-f194.google.com (mail-qk0-f194.google.com [209.85.220.194]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 42111203BD; Wed, 16 Dec 2015 12:55:18 +0000 (UTC) Received: by mail-qk0-f194.google.com with SMTP id t187so5797201qkd.0; Wed, 16 Dec 2015 04:55:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:in-reply-to:references:date:message-id:subject :from:to:cc:content-type; bh=Jy9FlVjg2dJptnCmgxf1uoO4eer9Cb7foAvyYn+I+OQ=; b=Ja3WHzvmLr/IXlkcJY3m2NKWvVof5wS28FSx3yjrYYE0OinV08LP2AQ62nWRFwNkdd f9i4h0fJmTDghh2XKWPXkaYOgw8VCzkyrWQCNBYpq5f8MYEGTInvvBeSn4ghbnikWnmv phmrjeMxYrguaus7iPNYNfUPZJp9aTDK3OryeNNbY4oviF70TJ44St2BRHmAAni6Z+ml rBvcDC4hDfj+TvqBx8ngf5HrT5DL9pBSQlwT7xs0Wa/wySH1Pop7bHBCnQkiAMA16GFD R23Jf6kpJDVCawcLO9b+x2GpkTLz3nbn7NadY4ixKVN6aWFb0Q+wTOmIE2kS7KLU1rC1 +n/w== MIME-Version: 1.0 X-Received: by 10.129.156.209 with SMTP id t200mr948303ywg.152.1450270510924; Wed, 16 Dec 2015 04:55:10 -0800 (PST) Sender: dbist13@gmail.com Received: by 10.13.227.1 with HTTP; Wed, 16 Dec 2015 04:55:10 -0800 (PST) Received: by 10.13.227.1 with HTTP; Wed, 16 Dec 2015 04:55:10 -0800 (PST) In-Reply-To: References: Date: Wed, 16 Dec 2015 07:55:10 -0500 X-Google-Sender-Auth: OTgQd15eh0GLdChuOdEtYF6vtWk Message-ID: Subject: Re: Issue while upgrading Ambari from 1.6.1 to 2.1.2 From: Artem Ervits To: user@ambari.apache.org Cc: "ambari-dev@incubator.apache.org" , "ambari-user@incubator.apache.org" Content-Type: multipart/alternative; boundary=94eb2c0bd0e8a1d2aa0527036a11 --94eb2c0bd0e8a1d2aa0527036a11 Content-Type: text/plain; charset=UTF-8 Try upgrading to 1.7 first. 1.6 is an old release. Then go to 2.1.2.1. On Dec 16, 2015 7:43 AM, "Deepak Sharma" wrote: > Hi > I upgraded Ambari server and agents on the cluster from 1.6.1 to 2.1.2 > The upgrade went fine. > I can see that 2.1.2 is the version now. > But while performing the ambari server schema upgrade , its failing. > > 16 Dec 2015 17:13:32,028 INFO [main] ControllerModule:187 - Detected > POSTGRES as the database type from the JDBC URL > 16 Dec 2015 17:13:33,607 INFO [main] ControllerModule:564 - Binding and > registering notification dispatcher class > org.apache.ambari.server.notifications.dispatchers.EmailDispatcher > 16 Dec 2015 17:13:33,609 INFO [main] ControllerModule:564 - Binding and > registering notification dispatcher class > org.apache.ambari.server.notifications.dispatchers.AlertScriptDispatcher > 16 Dec 2015 17:13:33,681 INFO [main] ControllerModule:564 - Binding and > registering notification dispatcher class > org.apache.ambari.server.notifications.dispatchers.SNMPDispatcher > 16 Dec 2015 17:13:38,096 INFO [main] SchemaUpgradeHelper:280 - Upgrading > schema to target version = 2.1.2.1 > 16 Dec 2015 17:13:38,120 INFO [main] SchemaUpgradeHelper:289 - Upgrading > schema from source version = 1.6.1 > 16 Dec 2015 17:13:38,122 INFO [main] SchemaUpgradeHelper:150 - Upgrade > path: [{ upgradeCatalog: sourceVersion = 1.6.1, targetVersion = 1.7.0 }, { > upgradeCatalog: sourceVersion = 1.7.0, targetVersion = 2.0.0 }, { > upgradeCatalog: sourceVersion = 2.0.0, targetVersion = 2.1.0 }, { > upgradeCatalog: sourceVersion = 2.1.0, targetVersion = 2.1.1 }, { > upgradeCatalog: sourceVersion = 2.1.1, targetVersion = 2.1.2 }, { > upgradeCatalog: sourceVersion = 2.1.2, targetVersion = 2.1.2.1 }, { > upgradeCatalog: sourceVersion = null, targetVersion = 2.1.2 }] > 16 Dec 2015 17:13:38,122 INFO [main] SchemaUpgradeHelper:188 - Executing > DDL upgrade... > 16 Dec 2015 17:13:38,131 INFO [main] DBAccessorImpl:718 - Executing > query: ALTER TABLE ambari_sequences RENAME COLUMN "value" to sequence_value > 16 Dec 2015 17:13:38,136 ERROR [main] DBAccessorImpl:724 - Error executing > query: ALTER TABLE ambari_sequences RENAME COLUMN "value" to sequence_value > org.postgresql.util.PSQLException: ERROR: must be owner of relation > ambari_sequences > > Caused by: org.postgresql.util.PSQLException: ERROR: must be owner of > relation ambari_sequences > > I am really stuck here. > Did anyone faced the same issue ? If yes , what is the resolution. > Else please help me with the steps to downgrade it back to 1.6.1 > I am running this ambari on SLES 11. > > > -- > Thanks > Deepak > --94eb2c0bd0e8a1d2aa0527036a11 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable

Try upgrading to 1.7 first. 1.6 is an old release. Then go t= o 2.1.2.1.

On Dec 16, 2015 7:43 AM, "Deepak Sharma&quo= t; <deepakmca05@gmail.com&g= t; wrote:
Hi
I upgraded Ambari server and agents on the clust= er from 1.6.1 to 2.1.2
The upgrade went fine.
I can see= that 2.1.2 is the version now.
But while performing the ambari s= erver schema upgrade=C2=A0 , its failing.

16 Dec 2= 015 17:13:32,028=C2=A0 INFO [main] ControllerModule:187 - Detected POSTGRES= as the database type from the JDBC URL
16 Dec 2015 17:13:33,607=C2=A0 I= NFO [main] ControllerModule:564 - Binding and registering notification disp= atcher class org.apache.ambari.server.notifications.dispatchers.EmailDispat= cher
16 Dec 2015 17:13:33,609=C2=A0 INFO [main] ControllerModule:564 - B= inding and registering notification dispatcher class org.apache.ambari.serv= er.notifications.dispatchers.AlertScriptDispatcher
16 Dec 2015 17:13:33,= 681=C2=A0 INFO [main] ControllerModule:564 - Binding and registering notifi= cation dispatcher class org.apache.ambari.server.notifications.dispatchers.= SNMPDispatcher
16 Dec 2015 17:13:38,096=C2=A0 INFO [main] SchemaUpgradeH= elper:280 - Upgrading schema to target version =3D 2.1.2.1
16 Dec 2015 1= 7:13:38,120=C2=A0 INFO [main] SchemaUpgradeHelper:289 - Upgrading schema fr= om source version =3D 1.6.1
16 Dec 2015 17:13:38,122=C2=A0 INFO [main] S= chemaUpgradeHelper:150 - Upgrade path: [{ upgradeCatalog: sourceVersion =3D= 1.6.1, targetVersion =3D 1.7.0 }, { upgradeCatalog: sourceVersion =3D 1.7.= 0, targetVersion =3D 2.0.0 }, { upgradeCatalog: sourceVersion =3D 2.0.0, ta= rgetVersion =3D 2.1.0 }, { upgradeCatalog: sourceVersion =3D 2.1.0, targetV= ersion =3D 2.1.1 }, { upgradeCatalog: sourceVersion =3D 2.1.1, targetVersio= n =3D 2.1.2 }, { upgradeCatalog: sourceVersion =3D 2.1.2, targetVersion =3D= 2.1.2.1 }, { upgradeCatalog: sourceVersion =3D null, targetVersion =3D 2.1= .2 }]
16 Dec 2015 17:13:38,122=C2=A0 INFO [main] SchemaUpgradeHelper:188= - Executing DDL upgrade...
16 Dec 2015 17:13:38,131=C2=A0 INFO [main] D= BAccessorImpl:718 - Executing query: ALTER TABLE ambari_sequences RENAME CO= LUMN "value" to sequence_value
16 Dec 2015 17:13:38,136 ERROR = [main] DBAccessorImpl:724 - Error executing query: ALTER TABLE ambari_seque= nces RENAME COLUMN "value" to sequence_value
org.postgresql.ut= il.PSQLException: ERROR: must be owner of relation ambari_sequences
=C2= =A0=C2=A0=C2=A0=C2=A0
Caused by: org.postgresql.util.PSQLException: ERRO= R: must be owner of relation ambari_sequences

= I am really stuck here.
Did anyone faced the same issue ? If yes = , what is the resolution.
Else please help me with the steps to d= owngrade it back to 1.6.1
I am running this ambari on SLES 11.


--
ThanksDeepak
--94eb2c0bd0e8a1d2aa0527036a11--