Support Questions
Find answers, ask questions, and share your expertise

Trying to upgrade ambari to 2.5

Highlighted

Trying to upgrade ambari to 2.5

Expert Contributor

Hi,

I am trying to upgrade Ambari to 2.4. I can run it if I do the following:

sudo ambari-server start --skip-database-check

but when I do that there is no heartbeat to my master node and these errors in ambari-agent.log:

 ['Ambari Monitor is NOT running on master.royble.co.uk']

both agent and server are running:

ed@master:~$ sudo ambari-server status
Using python  /usr/bin/python
Ambari-server status
Ambari Server running
Found Ambari Server PID: 15863 at: /var/run/ambari-server/ambari-server.pid
ed@master:~$ sudo ambari-agent status
Found ambari-agent PID: 15006
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
ed@master:~$ apt-cache show ambari-server | grep Version
Version: 2.4.0.1-1
ed@master:~$ apt-cache show ambari-agent | grep Version
Version: 2.4.0.1-1
Version: 2.2.1.0-161



If I run it this way:

sudo ambari-server start

Ambari does not run and the ambari-server-check-database.log shows an unhelpful error:

2017-04-26 13:37:47,607 ERROR - Unexpected error, database check failed
java.lang.NullPointerException

but in ambari-server.log, i get:

26 Apr 2017 13:37:47,955  INFO [Stack Version Loading Thread] LatestRepoCallable:219 - Stack HDP-2.3 cannot resolve OS debian6 to the supported ones: redhat6,redhat7,suse11,ubuntu14,debian7,ubuntu12. Family: null
26 Apr 2017 13:37:48,192  INFO [Stack Version Loading Thread] LatestRepoCallable:80 - Loading latest URL info for stack HDP-2.4 from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
26 Apr 2017 13:37:48,369  INFO [Stack Version Loading Thread] LatestRepoCallable:219 - Stack HDP-2.4 cannot resolve OS debian6 to the supported ones: redhat6,redhat7,suse11,ubuntu14,debian7,ubuntu12. Family: null
26 Apr 2017 13:37:48,598  INFO [Stack Version Loading Thread] LatestRepoCallable:80 - Loading latest URL info for stack HDP-2.5 from http://public-repo-1.hortonworks.com/HDP/hdp_urlinfo.json
26 Apr 2017 13:37:49,359  WARN [Stack Version Loading Thread] LatestRepoCallable:237 - Could not load version definition for HDP-2.5 identified by http://public-repo-1.hortonworks.com/HDP/ubuntu16/2.x/updates/2.5.3.0/HDP-2.5.3.0-37.xml. http://public-repo-1.hortonworks.com/HDP/ubuntu16/2.x/updates/2.5.3.0/HDP-2.5.3.0-37.xml
java.io.FileNotFoundException: http://public-repo-1.hortonworks.com/HDP/ubuntu16/2.x/updates/2.5.3.0/HDP-2.5.3.0-37.xml
at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1624)

which is odd as I am running Ubuntu14.

Any help is much appreciated as I am going crazy over this!

PS I am on HDP-2.4.2.0 trying to get to HDP-2.5.5.0 which is why I am upgrading Ambari from 2.2 to 2.4

4 REPLIES 4
Highlighted

Re: Trying to upgrade ambari to 2.5

@ed day

Couple of things here,

1.database check failed : please check ambari-server.log and ambari-server-check-database.log file for actual errors and stack traces - that may give more information on the failure.

2. error in Ambari-servre.log: appears like it is not able to reach repo URLs. please check whether you are able to access from that host.

  1. java.io.FileNotFoundException: http://public-repo-1.hortonworks.com/HDP/ubuntu16/2.x/updates/2.5.3.0/HDP-2.5.3.0-37.xml
Highlighted

Re: Trying to upgrade ambari to 2.5

Expert Contributor

Thanks amarnath. 1. The error is simply the generic one above. The server does not start, so no entry in that.

2. I get NoSuchKey i.e. it does not exist if I browse to it. But why is it using ubuntu16 anyway?

Re: Trying to upgrade ambari to 2.5

Explorer
Highlighted

Re: Trying to upgrade ambari to 2.5

Expert Contributor

Thansk kuresh. How do I go about installing the patch?