You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ambari.apache.org by Brian Jeltema <bd...@gmail.com> on 2015/12/18 20:56:18 UTC
ambari-server won't start after upgrade
I just upgraded to Ambari 2.0.2 (from 1.6), with a few minor problem, but got it working.
Then I updated my stack from HDP 2.1 to HDP 2.2. After that, the Ambari server fails to start:
18 Dec 2015 14:50:25,632 INFO [main] DatabaseChecker:152 - Checking DB store version
18 Dec 2015 14:50:25,634 INFO [main] DatabaseChecker:178 - DB store version is compatible
18 Dec 2015 14:50:25,634 INFO [main] DatabaseChecker:55 - Checking DB consistency
18 Dec 2015 14:50:25,672 ERROR [main] AmbariServer:667 - Failed to run the Ambari Server
org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.2, serviceName=STORM, componentName=STORM_REST_API
at org.apache.ambari.server.api.services.AmbariMetaInfo.getComponent(AmbariMetaInfo.java:268)
at org.apache.ambari.server.controller.utilities.DatabaseChecker.checkDBConsistency(DatabaseChecker.java:96)
at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:217)
at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:665)
I Googled and found references to this problem, but could not find a fix. Perhaps I overlooked a step in the rather
complex upgrade procedure. Any help would be appreciated.
Brian
Re: ambari-server won't start after upgrade
Posted by Brian Jeltema <bd...@gmail.com>.
Looks like that fixed it. That step is not documented in the HDP 2.1 -> HDP 2.2 upgrade document. I did find it in the HDP 2.1 -> HDP 2.3 manual upgrade doc.
There are other reference to that component in a few places (alert_definition, alert_history, execution_command, host_role_command) but I
left them alone assuming they are harmless.
Thanks.
> On Dec 18, 2015, at 7:22 PM, Sumit Mohanty <sm...@hortonworks.com> wrote:
>
> Looks like you may have missed a step to delete the STORM_REST_API component prior to upgrading to HDP-2.2.
>
> At this point only course of action is to delete it from the DB.
>
> * Stop ambari-server
> * Take a backup of the DB
> * Using SQL client
> - delete from hostcomponentdesiredstate where component_name='STORM_REST_API';
> - delete from hostcomponentstate where component_name='STORM_REST_API';
> - delete from servicecomponentdesiredstate where component_name='STORM_REST_API';
> * Start ambari-server
>
> You could search for STORM_REST_API in the DB backup. I do not think there are other occurrences but just incase.
>
> -Sumit
>
> From: Brian Jeltema <bd...@gmail.com>
> Sent: Friday, December 18, 2015 4:11 PM
> To: user@ambari.apache.org
> Subject: Re: ambari-server won't start after upgrade
>
> Our production cluster is down due to this issue. If Storm is the problem, I’m happy to remove
> it, I just need guidance on how to do that.
>
>> On Dec 18, 2015, at 2:56 PM, Brian Jeltema <bdjeltema@gmail.com <ma...@gmail.com>> wrote:
>>
>> I just upgraded to Ambari 2.0.2 (from 1.6), with a few minor problem, but got it working.
>>
>> Then I updated my stack from HDP 2.1 to HDP 2.2. After that, the Ambari server fails to start:
>>
>> 18 Dec 2015 14:50:25,632 INFO [main] DatabaseChecker:152 - Checking DB store version
>> 18 Dec 2015 14:50:25,634 INFO [main] DatabaseChecker:178 - DB store version is compatible
>> 18 Dec 2015 14:50:25,634 INFO [main] DatabaseChecker:55 - Checking DB consistency
>> 18 Dec 2015 14:50:25,672 ERROR [main] AmbariServer:667 - Failed to run the Ambari Server
>> org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.2, serviceName=STORM, componentName=STORM_REST_API
>> at org.apache.ambari.server.api.services.AmbariMetaInfo.getComponent(AmbariMetaInfo.java:268)
>> at org.apache.ambari.server.controller.utilities.DatabaseChecker.checkDBConsistency(DatabaseChecker.java:96)
>> at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:217)
>> at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:665)
>>
>> I Googled and found references to this problem, but could not find a fix. Perhaps I overlooked a step in the rather
>> complex upgrade procedure. Any help would be appreciated.
>>
>> Brian
>
>
Re: ambari-server won't start after upgrade
Posted by Sumit Mohanty <sm...@hortonworks.com>.
Looks like you may have missed a step to delete the STORM_REST_API component prior to upgrading to HDP-2.2.
At this point only course of action is to delete it from the DB.
* Stop ambari-server
* Take a backup of the DB
* Using SQL client
- delete from hostcomponentdesiredstate where component_name='STORM_REST_API';
- delete from hostcomponentstate where component_name='STORM_REST_API';
- delete from servicecomponentdesiredstate where component_name='STORM_REST_API';
* Start ambari-server
You could search for STORM_REST_API? in the DB backup. I do not think there are other occurrences but just incase.
-Sumit
________________________________
From: Brian Jeltema <bd...@gmail.com>
Sent: Friday, December 18, 2015 4:11 PM
To: user@ambari.apache.org
Subject: Re: ambari-server won't start after upgrade
Our production cluster is down due to this issue. If Storm is the problem, I'm happy to remove
it, I just need guidance on how to do that.
On Dec 18, 2015, at 2:56 PM, Brian Jeltema <bd...@gmail.com>> wrote:
I just upgraded to Ambari 2.0.2 (from 1.6), with a few minor problem, but got it working.
Then I updated my stack from HDP 2.1 to HDP 2.2. After that, the Ambari server fails to start:
18 Dec 2015 14:50:25,632 INFO [main] DatabaseChecker:152 - Checking DB store version
18 Dec 2015 14:50:25,634 INFO [main] DatabaseChecker:178 - DB store version is compatible
18 Dec 2015 14:50:25,634 INFO [main] DatabaseChecker:55 - Checking DB consistency
18 Dec 2015 14:50:25,672 ERROR [main] AmbariServer:667 - Failed to run the Ambari Server
org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.2, serviceName=STORM, componentName=STORM_REST_API
at org.apache.ambari.server.api.services.AmbariMetaInfo.getComponent(AmbariMetaInfo.java:268)
at org.apache.ambari.server.controller.utilities.DatabaseChecker.checkDBConsistency(DatabaseChecker.java:96)
at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:217)
at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:665)
I Googled and found references to this problem, but could not find a fix. Perhaps I overlooked a step in the rather
complex upgrade procedure. Any help would be appreciated.
Brian
Re: ambari-server won't start after upgrade
Posted by Brian Jeltema <bd...@gmail.com>.
Our production cluster is down due to this issue. If Storm is the problem, I’m happy to remove
it, I just need guidance on how to do that.
> On Dec 18, 2015, at 2:56 PM, Brian Jeltema <bd...@gmail.com> wrote:
>
> I just upgraded to Ambari 2.0.2 (from 1.6), with a few minor problem, but got it working.
>
> Then I updated my stack from HDP 2.1 to HDP 2.2. After that, the Ambari server fails to start:
>
> 18 Dec 2015 14:50:25,632 INFO [main] DatabaseChecker:152 - Checking DB store version
> 18 Dec 2015 14:50:25,634 INFO [main] DatabaseChecker:178 - DB store version is compatible
> 18 Dec 2015 14:50:25,634 INFO [main] DatabaseChecker:55 - Checking DB consistency
> 18 Dec 2015 14:50:25,672 ERROR [main] AmbariServer:667 - Failed to run the Ambari Server
> org.apache.ambari.server.StackAccessException: Stack data, stackName=HDP, stackVersion=2.2, serviceName=STORM, componentName=STORM_REST_API
> at org.apache.ambari.server.api.services.AmbariMetaInfo.getComponent(AmbariMetaInfo.java:268)
> at org.apache.ambari.server.controller.utilities.DatabaseChecker.checkDBConsistency(DatabaseChecker.java:96)
> at org.apache.ambari.server.controller.AmbariServer.run(AmbariServer.java:217)
> at org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:665)
>
> I Googled and found references to this problem, but could not find a fix. Perhaps I overlooked a step in the rather
> complex upgrade procedure. Any help would be appreciated.
>
> Brian