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 EB74818226 for ; Sat, 26 Dec 2015 14:58:02 +0000 (UTC) Received: (qmail 86377 invoked by uid 500); 26 Dec 2015 14:58:02 -0000 Delivered-To: apmail-ambari-user-archive@ambari.apache.org Received: (qmail 86340 invoked by uid 500); 26 Dec 2015 14:58:02 -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 86330 invoked by uid 99); 26 Dec 2015 14:58:02 -0000 Received: from Unknown (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 26 Dec 2015 14:58:02 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 2F9161A0CFC for ; Sat, 26 Dec 2015 14:58:02 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 4.526 X-Spam-Level: **** X-Spam-Status: No, score=4.526 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HK_RANDOM_ENVFROM=0.626, HTML_MESSAGE=3, KAM_LIVE=1, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd2-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id qrp1UEh5Quoa for ; Sat, 26 Dec 2015 14:57:52 +0000 (UTC) Received: from mail-lf0-f51.google.com (mail-lf0-f51.google.com [209.85.215.51]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id E668620185 for ; Sat, 26 Dec 2015 14:57:51 +0000 (UTC) Received: by mail-lf0-f51.google.com with SMTP id p203so183474457lfa.0 for ; Sat, 26 Dec 2015 06:57:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=w7z7bhgWCsfgKgUD0USfAcblGZwIt0zjnQHTYWX/XqY=; b=lthBOKR1FmVI7jgcknTWGmGwpf8aGBfmWGvuiYLh6XXYWRCZ1ZuR6W3mb8o2NkTqP9 e71rl2E5T4qjpBrvMXujXHEV1t3/1KHq0XuLZ20cLjSa7RGUidG6LQcfj/d0LjFQGgHt JgYHdeMOdDaOgG0NqMjoOoW19R8MV+VlChQcrZRHEbdYinBOxMeo0e4Sag7W+7f/NlV4 RzW9ZhA1qPkAnTmCrVkUOOeLYk0o+bLevXPpC5mh2HH4Tt0bLjrOR73Ap0wjRHPyeY4R ziJPdwpGQ2V0mZzE+S2/VTdAs8DD4dMEQpGxDnkcqlPGy9sII5qpnDRTEXKn3Z/StI36 54ZQ== MIME-Version: 1.0 X-Received: by 10.25.25.142 with SMTP id 136mr9688153lfz.42.1451141863547; Sat, 26 Dec 2015 06:57:43 -0800 (PST) Received: by 10.25.210.144 with HTTP; Sat, 26 Dec 2015 06:57:43 -0800 (PST) In-Reply-To: References: <1451103302721.91173@hortonworks.com> <1451104983702.57266@hortonworks.com> <1451107337971.54479@hortonworks.com> Date: Sat, 26 Dec 2015 22:57:43 +0800 Message-ID: Subject: Re: Ambari fails to start From: Jeff Zhang To: user@ambari.apache.org Content-Type: multipart/alternative; boundary=001a11401e424ba8440527ce4b70 --001a11401e424ba8440527ce4b70 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Thanks Myroslav, it works. On Sat, Dec 26, 2015 at 3:18 PM, Myroslav Papyrkovskyy < mpapyrkovskyy@hortonworks.com> wrote: > Hello Jeff. As I see you have exception related to existing database from > previous version. > This is because when you removed 2.0 data folder of PostgreSQL was not > affected and still contains data from 2.0. > Usually you can run > # ambari-server reset > this will drop database related to Ambari and recreate it from scratch. > Please, note that all data will be lost (but I think you are ok with this= , > as only way to keep data is to follow normal upgrade). > > Regards, > Myroslav > > 26 =D0=B3=D1=80=D1=83=D0=B4. 2015 =D1=80. =D0=BE 08:16 Jeff Zhang =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=B2(=D0=BB=D0=B0): > > Hi Sumit, > > Is there any document about how to clean ambari cleanly. I follow the > instruction here, but still see the issue. > > http://mapredit.blogspot.com/2014/06/remove-hdp-and-ambari-completely.htm= l > > On Sat, Dec 26, 2015 at 1:22 PM, Sumit Mohanty > wrote: > >> That is not supported in the sense that DB will not be auto-upgraded to >> 2.2. >> >> >> You probably have to uninstall Ambari and clean various "ambari-server" >> folders and then fresh install 2.2. This of course means that all 2.0 da= ta >> in the Ambari DB is lost. >> ------------------------------ >> *From:* Jeff Zhang >> *Sent:* Friday, December 25, 2015 9:07 PM >> >> *To:* user@ambari.apache.org >> *Subject:* Re: Ambari fails to start >> >> Actually I didn't follow the normal instruction. I just remove the 2.0 >> using yum and install 2.2 again. maybe this cause this issue. >> >> On Sat, Dec 26, 2015 at 12:43 PM, Sumit Mohanty > > wrote: >> >>> =E2=80=8BDo you have the URL used to deploy the 2.0.x version? >>> >>> >>> Did "ambari-server upgrade" command show any other error? >>> ------------------------------ >>> *From:* Jeff Zhang >>> *Sent:* Friday, December 25, 2015 8:18 PM >>> *To:* user@ambari.apache.org >>> *Subject:* Re: Ambari fails to start >>> >>> from 2.0 to 2.2 >>> >>> On Sat, Dec 26, 2015 at 12:15 PM, Sumit Mohanty < >>> smohanty@hortonworks.com> wrote: >>> >>>> =E2=80=8BWhat version you are upgrading from and to? >>>> ------------------------------ >>>> *From:* Jeff Zhang >>>> *Sent:* Friday, December 25, 2015 7:02 PM >>>> *To:* user@ambari.apache.org >>>> *Subject:* Ambari fails to start >>>> >>>> >>>> I meet the following error when upgrading ambari, could anyone help ? >>>> >>>> 26 Dec 2015 10:57:46,911 ERROR [main] AmbariServer:819 - Failed to run >>>> the Ambari Server >>>> com.google.inject.ProvisionException: Guice provision errors: >>>> >>>> 1) Error injecting method, Exception [EclipseLink-4011] (Eclipse >>>> Persistence Services - 2.5.2.v20140319-9ad6abd): >>>> org.eclipse.persistence.exceptions.DatabaseException >>>> Exception Description: Error preallocating sequence numbers. The >>>> sequence table information is not complete. >>>> at >>>> org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaIn= fo.java:243) >>>> at >>>> org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaI= nfo.java:125) >>>> while locating org.apache.ambari.server.api.services.AmbariMetaInfo >>>> for field at >>>> org.apache.ambari.server.controller.AmbariServer.ambariMetaInfo(Ambari= Server.java:145) >>>> at >>>> org.apache.ambari.server.controller.AmbariServer.class(AmbariServer.ja= va:145) >>>> while locating org.apache.ambari.server.controller.AmbariServer >>>> >>>> 1 error >>>> at >>>> com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987) >>>> at >>>> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:= 1013) >>>> at >>>> org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.jav= a:812) >>>> Caused by: Exception [EclipseLink-4011] (Eclipse Persistence Services = - >>>> 2.5.2.v20140319-9ad6abd): >>>> org.eclipse.persistence.exceptions.DatabaseException >>>> Exception Description: Error preallocating sequence numbers. The >>>> sequence table information is not complete. >>>> >>>> -- >>>> Best Regards >>>> >>>> Jeff Zhang >>>> >>> >>> >>> >>> -- >>> Best Regards >>> >>> Jeff Zhang >>> >> >> >> >> -- >> Best Regards >> >> Jeff Zhang >> > > > > -- > Best Regards > > Jeff Zhang > > > --=20 Best Regards Jeff Zhang --001a11401e424ba8440527ce4b70 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Thanks=C2=A0Myroslav, it works.



On Sat, Dec 26, 2015 a= t 3:18 PM, Myroslav Papyrkovskyy <mpapyrkovskyy@hortonworks.co= m> wrote:
Hello Jeff. As I see you have exception related to existing database from p= revious version.
This is because when you removed 2.0 data folder of PostgreSQL was not= affected and still contains data from 2.0.
Usually you can run
# ambari-server reset
this will drop database related to Ambari and recreate it from scratch= .
Please, note that all data will be lost (but I think you are ok with t= his, as only way to keep data is to follow normal upgrade).

Regards,
Myroslav
26 =D0=B3=D1=80=D1=83=D0=B4. 2015 =D1=80. =D0=BE 08:16 Jeff Zhang <= zjffdu@gmail.com&= gt; =D0=BD=D0=B0=D0=BF=D0=B8=D1=81=D0=B0=D0=B2(=D0=BB=D0=B0):

Hi Sumit,

Is there any document about how to clean ambari cleanly. I follow the = instruction here, but still see the issue.


On Sat, Dec 26, 2015 at 1:22 PM, Sumit Mohanty <= span dir=3D"ltr"> <smohanty@= hortonworks.com> wrote:

That is not supported in the sense that DB will not be auto-upgraded to = 2.2.=C2=A0


You probably have to uninstall Ambari and clean various "ambari-ser= ver" folders and then fresh install 2.2. This of course means that all= 2.0 data in the Ambari=C2=A0DB=C2=A0is lost.


From: Jeff Zhang <zjffdu@gmail.com>
Sent: Friday, December 25, 2015 9:07 PM

To: user@ambari.apache.org
Subject: Re: Ambari fails to start
=C2=A0
Actually I didn't follow the normal instruction. I jus= t remove the 2.0 using yum and install 2.2 again. maybe this cause this iss= ue.=C2=A0

On Sat, Dec 26, 2015 at 12:43 PM, Sumit Mohanty = <smohanty@= hortonworks.com> wrote:

=E2=80=8BDo you have the URL used to deploy the 2.0.x version?


Did "ambari-server upgrade" command show any other error?


From: Jeff Zhang <zjffdu@gmail.com>
Sent: Friday, December 25, 2015 8:18 PM
To: user@ambari.apache.org
Subject: Re: Ambari fails to start
=C2=A0
from 2.0 to 2.2

On Sat, Dec 26, 2015 at 12:15 PM, Sumit Mohanty = <smohanty@= hortonworks.com> wrote:

=E2=80=8BWhat version you are upgrading from and to?


From: Jeff Zhang <zjffdu@gmail.com>
Sent: Friday, December 25, 2015 7:02 PM
To: user@ambari.apache.org
Subject: Ambari fails to start
=C2=A0

I meet the following error when upgrading ambari, could anyone help ?

26 Dec 2015 10:57:46,911 ERROR [main] AmbariServer:819 - Failed to run= the Ambari Server
com.google.inject.ProvisionException: Guice provision errors:

1) Error injecting method, Exception [EclipseLink-4011] (Eclipse Persi= stence Services - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.excepti= ons.DatabaseException
Exception Description: Error preallocating sequence numbers.=C2=A0 The= sequence table information is not complete.
=C2=A0 at org.apache.ambari.server.api.services.AmbariMetaInfo.init(Am= bariMetaInfo.java:243)
=C2=A0 at org.apache.ambari.server.api.services.AmbariMetaInfo.class(A= mbariMetaInfo.java:125)
=C2=A0 while locating org.apache.ambari.server.api.services.AmbariMeta= Info
=C2=A0 =C2=A0 for field at org.apache.ambari.server.controller.AmbariS= erver.ambariMetaInfo(AmbariServer.java:145)
=C2=A0 at org.apache.ambari.server.controller.AmbariServer.class(Ambar= iServer.java:145)
=C2=A0 while locating org.apache.ambari.server.controller.AmbariServer=

1 error
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at com.google.inject.internal.InjectorImpl= $4.get(InjectorImpl.java:987)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at com.google.inject.internal.InjectorImpl= .getInstance(InjectorImpl.java:1013)
=C2=A0 =C2=A0 =C2=A0 =C2=A0 at org.apache.ambari.server.controller.Amb= ariServer.main(AmbariServer.java:812)
Caused by: Exception [EclipseLink-4011] (Eclipse Persistence Services = - 2.5.2.v20140319-9ad6abd): org.eclipse.persistence.exceptions.DatabaseExce= ption
Exception Description: Error preallocating sequence numbers.=C2=A0 The= sequence table information is not complete.

--
Best Regards

Jeff Zhang



--
Best Regards

Jeff Zhang



--
Best Regards

Jeff Zhang



--
Best Regards

Jeff Zhang




--
Best Regards

Jeff Zhang
--001a11401e424ba8440527ce4b70--