Tao - I’m assuming you are referring to the Python module. If so you can find the location with 2 commands in the python shell, as I’ve done below:
# python >>> import ambari_agent >>> print ambari_agent.__file__ /usr/lib/python2.6/site-packages/ambari_agent/__init__.pyc -- Hortonworks - We do Hadoop Sean Roberts Partner Solutions Engineer - EMEA @seano From: Yu, Tao <[email protected]><mailto:[email protected]> Reply: [email protected] <[email protected]>><mailto:[email protected]> Date: February 18, 2015 at 19:50:13 To: '[email protected]' <[email protected]>><mailto:[email protected]> Subject: RE: where is the python module ambari_agent located? Thanks Sean! So if I want to add Storm service into HDP 2.0.6 (or my custom Stack), where and how can I get this ambari-agent module installed? I installed HDP 2.0.6, on the agent nodes, there is no ambari-agent module under /var/lib/ambari-agent. Or did I miss anything? -Tao From: Sean Roberts [mailto:[email protected]] Sent: Wednesday, February 18, 2015 2:42 PM To: [email protected] Subject: Re: where is the python module ambari_agent located? Tao - It’s in the ambari-agent sources (or packages) not in the ambari-server packages. -- Hortonworks - We do Hadoop Sean Roberts Partner Solutions Engineer - EMEA @seano From: Yu, Tao <[email protected]><mailto:[email protected]> Reply: [email protected]<mailto:[email protected]> <[email protected]>><mailto:[email protected]> Date: February 18, 2015 at 19:31:30 To: [email protected]<mailto:[email protected]> <[email protected]>><mailto:[email protected]> Subject: where is the python module ambari_agent located? Hi, Storm was supported starting from HDP 2.1. In storm.py (under /var/lib/ambari-server/resources/stacks/HDP/2.1/services/STORM/package/scripts), I noticed that it imports ambari_agent module. But couldn’t find where this ambari_agent module is. Does anyone know where this ambari_agent module located? Thanks, -Tao
