Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Where download Ambari jar file?

avatar
Expert Contributor

Hi. I tried to upgrade my cluster from Ambari 2.2 to 2.4. I went through the upgrade process got it to run, but the web interface was still showing me a version of 2.2.

I think the problem is this:

Confirm there is only one ambari-server*.jar file in <code>/usr/lib/ambari-server
. If there is more than one JAR file with name ambari-server*.jar, move all JARs except ambari-server-2.4.*.jar to /tmp before proceeding with upgrade.

the jar there is ambari-server-2.2.1.0.161.jar.

Can I simply get replace that jar with the 2.4 jar, and If so where can I get teh jar from? TIA!

EDIT: is this it? It appears to be a blank page.

1 ACCEPTED SOLUTION

avatar
Master Mentor

@ed day

Looks like related to: https://community.hortonworks.com/questions/96985/how-do-i-fix-my-cluster-ambari-update-attempt.html...

Based on the update it looks like your ambari-server binary upgrade is not completed fine.

You should try doing the following to see if it works:

1. Make sure that the Ambari Repo is pointing to the correct link. So we will need to check the following file:

Example:

# cat /etc/yum.repos.d/ambari.repo

#VERSION_NUMBER=2.4.2.0-136
[Updates-ambari-2.4.2.0]
name=ambari-2.4.2.0 - Updates
baseurl=http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.2.0
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

2. If you see that it is not pointing to the correct ambari repo then you should download the correct repo file for correct OS (like CentOS6).

Example: For ambari 2.4.2 you can refer to: http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-upgrade/content/upgrade_ambari.htm...

# wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

3. Now you should perform a yum clean

# yum clean all
# yum info ambari-server

4. Now perform a Yum Upgrade.

# yum upgrade ambari-server -y

OR else try reinstalling the ambari-server that will fix the missing JAR issue during last installation:

# yum reinstall ambari-server

.

Now verify if all JARs are of correct version or not. Just for safety try running the ambari upgrade command (just to make sure that ambari DB schema is also upgraded).

NOTE: You should take a Ambari DB Dump before running the ambari server upgrade command just to make sure that we have a safe copy of the ambari DB dump.

# ambari-server upgrade
# ambari-server start

.

View solution in original post

3 REPLIES 3

avatar
Super Guru

@ed day

If you followed the process in that link then you shouldn't be running into this issue. You don't really need to download Ambari jar separately. Can you please confirm that you have the repo file for your operating system? If you are on CentOS 7 then is your file for CentOS 7?

http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.0.1/bk_ambari-upgrade/content/upgrade_ambari.htm...

avatar
Master Mentor

@ed day

Looks like related to: https://community.hortonworks.com/questions/96985/how-do-i-fix-my-cluster-ambari-update-attempt.html...

Based on the update it looks like your ambari-server binary upgrade is not completed fine.

You should try doing the following to see if it works:

1. Make sure that the Ambari Repo is pointing to the correct link. So we will need to check the following file:

Example:

# cat /etc/yum.repos.d/ambari.repo

#VERSION_NUMBER=2.4.2.0-136
[Updates-ambari-2.4.2.0]
name=ambari-2.4.2.0 - Updates
baseurl=http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.2.0
gpgcheck=1
gpgkey=http://public-repo-1.hortonworks.com/ambari/centos6/RPM-GPG-KEY/RPM-GPG-KEY-Jenkins
enabled=1
priority=1

2. If you see that it is not pointing to the correct ambari repo then you should download the correct repo file for correct OS (like CentOS6).

Example: For ambari 2.4.2 you can refer to: http://docs.hortonworks.com/HDPDocuments/Ambari-2.4.2.0/bk_ambari-upgrade/content/upgrade_ambari.htm...

# wget -nv http://public-repo-1.hortonworks.com/ambari/centos6/2.x/updates/2.4.2.0/ambari.repo -O /etc/yum.repos.d/ambari.repo

3. Now you should perform a yum clean

# yum clean all
# yum info ambari-server

4. Now perform a Yum Upgrade.

# yum upgrade ambari-server -y

OR else try reinstalling the ambari-server that will fix the missing JAR issue during last installation:

# yum reinstall ambari-server

.

Now verify if all JARs are of correct version or not. Just for safety try running the ambari upgrade command (just to make sure that ambari DB schema is also upgraded).

NOTE: You should take a Ambari DB Dump before running the ambari server upgrade command just to make sure that we have a safe copy of the ambari DB dump.

# ambari-server upgrade
# ambari-server start

.

avatar
Expert Contributor

I do not know what happened by I re-ran

ambari-server upgrade

and it worked. Thanks!