You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Sid Wagle <sw...@hortonworks.com> on 2015/06/03 23:46:36 UTC

Review Request 35027: Ambari 2.0.1 server doesn't start after upgrade from HDP 2.1.7 to 2.2.4

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35027/
-----------------------------------------------------------

Review request for Ambari, Alejandro Fernandez, Mahadev Konar, and Sumit Mohanty.


Bugs: AMBARI-11672
    https://issues.apache.org/jira/browse/AMBARI-11672


Repository: ambari


Description
-------

After upgrading Ambari from 1.7 to 2.0.1 , ambari server fails to start. HDP upgrade was from HDP 2.1.7 to HDP 2.2.4.

with this error.
{code}
30 May 2015 11:17:51,492  INFO [main] AmbariManagementControllerImpl:256 - Initializing the AmbariManagementControllerImpl
30 May 2015 11:17:51,557  INFO [main] DatabaseChecker:152 - Checking DB store version
30 May 2015 11:17:51,559  INFO [main] DatabaseChecker:178 - DB store version is compatible
30 May 2015 11:17:51,560  INFO [main] DatabaseChecker:55 - Checking DB consistency
30 May 2015 11:17:51,896 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)
{code}


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java e331475 
  ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog210Test.java 356fb7d 

Diff: https://reviews.apache.org/r/35027/diff/


Testing
-------

Unit test passed.


Thanks,

Sid Wagle


Re: Review Request 35027: Ambari 2.0.1 server doesn't start after upgrade from HDP 2.1.7 to 2.2.4

Posted by Alejandro Fernandez <af...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35027/#review86536
-----------------------------------------------------------

Ship it!



ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java
<https://reviews.apache.org/r/35027/#comment138590>

    Small thing, should make case insensitive comparison


- Alejandro Fernandez


On June 4, 2015, 1:32 a.m., Sid Wagle wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35027/
> -----------------------------------------------------------
> 
> (Updated June 4, 2015, 1:32 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Mahadev Konar, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-11672
>     https://issues.apache.org/jira/browse/AMBARI-11672
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> After upgrading Ambari from 1.7 to 2.0.1 , ambari server fails to start. HDP upgrade was from HDP 2.1.7 to HDP 2.2.4.
> 
> with this error.
> {code}
> 30 May 2015 11:17:51,492  INFO [main] AmbariManagementControllerImpl:256 - Initializing the AmbariManagementControllerImpl
> 30 May 2015 11:17:51,557  INFO [main] DatabaseChecker:152 - Checking DB store version
> 30 May 2015 11:17:51,559  INFO [main] DatabaseChecker:178 - DB store version is compatible
> 30 May 2015 11:17:51,560  INFO [main] DatabaseChecker:55 - Checking DB consistency
> 30 May 2015 11:17:51,896 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)
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java e331475 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog210Test.java 356fb7d 
> 
> Diff: https://reviews.apache.org/r/35027/diff/
> 
> 
> Testing
> -------
> 
> Unit test passed.
> 
> 
> Thanks,
> 
> Sid Wagle
> 
>


Re: Review Request 35027: Ambari 2.0.1 server doesn't start after upgrade from HDP 2.1.7 to 2.2.4

Posted by Mahadev Konar <ma...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35027/#review86535
-----------------------------------------------------------

Ship it!


Ship It!

- Mahadev Konar


On June 4, 2015, 1:32 a.m., Sid Wagle wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/35027/
> -----------------------------------------------------------
> 
> (Updated June 4, 2015, 1:32 a.m.)
> 
> 
> Review request for Ambari, Alejandro Fernandez, Mahadev Konar, and Sumit Mohanty.
> 
> 
> Bugs: AMBARI-11672
>     https://issues.apache.org/jira/browse/AMBARI-11672
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> After upgrading Ambari from 1.7 to 2.0.1 , ambari server fails to start. HDP upgrade was from HDP 2.1.7 to HDP 2.2.4.
> 
> with this error.
> {code}
> 30 May 2015 11:17:51,492  INFO [main] AmbariManagementControllerImpl:256 - Initializing the AmbariManagementControllerImpl
> 30 May 2015 11:17:51,557  INFO [main] DatabaseChecker:152 - Checking DB store version
> 30 May 2015 11:17:51,559  INFO [main] DatabaseChecker:178 - DB store version is compatible
> 30 May 2015 11:17:51,560  INFO [main] DatabaseChecker:55 - Checking DB consistency
> 30 May 2015 11:17:51,896 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)
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java e331475 
>   ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog210Test.java 356fb7d 
> 
> Diff: https://reviews.apache.org/r/35027/diff/
> 
> 
> Testing
> -------
> 
> Unit test passed.
> 
> 
> Thanks,
> 
> Sid Wagle
> 
>


Re: Review Request 35027: Ambari 2.0.1 server doesn't start after upgrade from HDP 2.1.7 to 2.2.4

Posted by Sid Wagle <sw...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/35027/
-----------------------------------------------------------

(Updated June 4, 2015, 1:32 a.m.)


Review request for Ambari, Alejandro Fernandez, Mahadev Konar, and Sumit Mohanty.


Changes
-------

Not possible to load ServiceImpl since component is marked dlete d in the stack. Switched to JPQL.
Verified manually.


Bugs: AMBARI-11672
    https://issues.apache.org/jira/browse/AMBARI-11672


Repository: ambari


Description
-------

After upgrading Ambari from 1.7 to 2.0.1 , ambari server fails to start. HDP upgrade was from HDP 2.1.7 to HDP 2.2.4.

with this error.
{code}
30 May 2015 11:17:51,492  INFO [main] AmbariManagementControllerImpl:256 - Initializing the AmbariManagementControllerImpl
30 May 2015 11:17:51,557  INFO [main] DatabaseChecker:152 - Checking DB store version
30 May 2015 11:17:51,559  INFO [main] DatabaseChecker:178 - DB store version is compatible
30 May 2015 11:17:51,560  INFO [main] DatabaseChecker:55 - Checking DB consistency
30 May 2015 11:17:51,896 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)
{code}


Diffs (updated)
-----

  ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog210.java e331475 
  ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog210Test.java 356fb7d 

Diff: https://reviews.apache.org/r/35027/diff/


Testing
-------

Unit test passed.


Thanks,

Sid Wagle