Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Ambari agent uses wrong version when installing a service

avatar
Rising Star

I added a few nodes to install Storm, but Ambari (2.2.2.0) is apparently trying to to use the wrong version.

On the destination node, the path /var/lib/ambari-agent/cache/common-services/STORM contains 2 versions, 0.9.1 and 0.9.1.2.1.

The directory 0.9.1 is empty and is the one Ambari is trying to execute script in. The other directory contains the items needed for installation. So the install fails with errors like:

Caught an exception while executing custom service command: <class 'ambari_agent.AgentException.AgentException'>: 'Script /var/lib/ambari-agent/cache/common-services/STORM/0.9.1/package/scripts/drpc_server.py does not exist'; 'Script /var/lib/ambari-agent/cache/common-services/STORM/0.9.1/package/scripts/drpc_server.py does not exist'

I suppose the question is how do I get Ambari to into shape here?

Any help/thoughts are greatly appreciated.

edit: I found that my repo_version table in the Ambari database has 2 different entries for the stack_id I'm using:

53 | 2.4.0.0-169 | HDP-2.4.0.0  | [{"repositories":[{"Repositories/repo_id":"HDP-2.4","Repositories/base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.0.0","Repositories/repo_name
":"HDP"},{"Repositories/repo_id":"HDP-UTILS-1.1.0.20","Repositories/base_url":"http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6","Repositories/repo_name":"HDP-UTILS"}],"OperatingSystems/os_type":"r
edhat6"}] | 51

103 | 2.4.2.0-258 | HDP-2.4.2.0  | [{"repositories":[{"Repositories/repo_id":"HDP-2.4","Repositories/base_url":"http://public-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.4.2.0","Repositories/repo_name
":"HDP"},{"Repositories/repo_id":"HDP-UTILS-1.1.0.20","Repositories/base_url":"http://public-repo-1.hortonworks.com/HDP-UTILS-1.1.0.20/repos/centos6","Repositories/repo_name":"HDP-UTILS"}],"OperatingSystems/os_type":"r
edhat6"}] | 51
1 ACCEPTED SOLUTION

avatar
Master Mentor

If you intend to use 2.4 release, please try registering 2.4.3 version and upgrade cluster to that. Then try adding storm. storm in HDP 2.4 is version 0.10.x so you're definitely pulling something incorrect. go to Ambari admin page and make sure you have correct repos setup.

View solution in original post

1 REPLY 1

avatar
Master Mentor

If you intend to use 2.4 release, please try registering 2.4.3 version and upgrade cluster to that. Then try adding storm. storm in HDP 2.4 is version 0.10.x so you're definitely pulling something incorrect. go to Ambari admin page and make sure you have correct repos setup.