You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by Vitalyi Brodetskyi <vb...@hortonworks.com> on 2014/09/25 21:04:50 UTC

Review Request 26051: Could not start Ambari-server after upgrade from 1.4.4 and 1.5.1 to 1.7.0

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

Review request for Ambari and Andrew Onischuk.


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


Repository: ambari


Description
-------

{code}
STR: 
1)Deploy old version of ambari with all components at all hosts
2)Try to do upgrade

{Code}
[root@amb-upg14423-6-4postgres1411535150-2 ~]# ambari-server status
Using python  /usr/bin/python2.6
Ambari-server status
Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid
[root@amb-upg14423-6-4postgres1411535150-2 ~]# ambari-agent status
Found ambari-agent PID: 2929
ambari-agent running.
Agent PID at: /var/run/ambari-agent/ambari-agent.pid
Agent out at: /var/log/ambari-agent/ambari-agent.out
Agent log at: /var/log/ambari-agent/ambari-agent.log
[root@amb-upg14423-6-4postgres1411535150-2 ~]# ambari-server start
Using python  /usr/bin/python2.6
Starting ambari-server
Ambari Server running with 'root' privileges.
Organizing resource files at /var/lib/ambari-server/resources...
Server PID at: /var/run/ambari-server/ambari-server.pid
Server out at: /var/log/ambari-server/ambari-server.out
Server log at: /var/log/ambari-server/ambari-server.log
Waiting for server start....................
ERROR: Exiting with exit code -1. 
REASON: Ambari Server java process died with exitcode 255. Check /var/log/ambari-server/ambari-server.out for more information.
{Code}

Expected result:
Ambari-server can be started.

Actual result:
Could not start ambari-server.
{code}


Diffs
-----

  ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java 8914924 
  ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java 919fbd5 

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


Testing
-------

mvn clean test


Thanks,

Vitalyi Brodetskyi


Re: Review Request 26051: Could not start Ambari-server after upgrade from 1.4.4 and 1.5.1 to 1.7.0

Posted by Andrew Onischuk <ao...@hortonworks.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/26051/#review54578
-----------------------------------------------------------

Ship it!


Ship It!

- Andrew Onischuk


On Sept. 25, 2014, 7:04 p.m., Vitalyi Brodetskyi wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/26051/
> -----------------------------------------------------------
> 
> (Updated Sept. 25, 2014, 7:04 p.m.)
> 
> 
> Review request for Ambari and Andrew Onischuk.
> 
> 
> Bugs: AMBARI-7499
>     https://issues.apache.org/jira/browse/AMBARI-7499
> 
> 
> Repository: ambari
> 
> 
> Description
> -------
> 
> {code}
> STR: 
> 1)Deploy old version of ambari with all components at all hosts
> 2)Try to do upgrade
> 
> {Code}
> [root@amb-upg14423-6-4postgres1411535150-2 ~]# ambari-server status
> Using python  /usr/bin/python2.6
> Ambari-server status
> Ambari Server not running. Stale PID File at: /var/run/ambari-server/ambari-server.pid
> [root@amb-upg14423-6-4postgres1411535150-2 ~]# ambari-agent status
> Found ambari-agent PID: 2929
> ambari-agent running.
> Agent PID at: /var/run/ambari-agent/ambari-agent.pid
> Agent out at: /var/log/ambari-agent/ambari-agent.out
> Agent log at: /var/log/ambari-agent/ambari-agent.log
> [root@amb-upg14423-6-4postgres1411535150-2 ~]# ambari-server start
> Using python  /usr/bin/python2.6
> Starting ambari-server
> Ambari Server running with 'root' privileges.
> Organizing resource files at /var/lib/ambari-server/resources...
> Server PID at: /var/run/ambari-server/ambari-server.pid
> Server out at: /var/log/ambari-server/ambari-server.out
> Server log at: /var/log/ambari-server/ambari-server.log
> Waiting for server start....................
> ERROR: Exiting with exit code -1. 
> REASON: Ambari Server java process died with exitcode 255. Check /var/log/ambari-server/ambari-server.out for more information.
> {Code}
> 
> Expected result:
> Ambari-server can be started.
> 
> Actual result:
> Could not start ambari-server.
> {code}
> 
> 
> Diffs
> -----
> 
>   ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java 8914924 
>   ambari-server/src/test/java/org/apache/ambari/server/state/cluster/ClusterTest.java 919fbd5 
> 
> Diff: https://reviews.apache.org/r/26051/diff/
> 
> 
> Testing
> -------
> 
> mvn clean test
> 
> 
> Thanks,
> 
> Vitalyi Brodetskyi
> 
>