ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sean Roberts <srobe...@hortonworks.com>
Subject RE: where is the python module ambari_agent located?
Date Wed, 18 Feb 2015 20:15:36 GMT
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 <taoyu@aware.com><mailto:taoyu@aware.com>
Reply: user@ambari.apache.org <user@ambari.apache.org>><mailto:user@ambari.apache.org>
Date: February 18, 2015 at 19:50:13
To: 'user@ambari.apache.org' <user@ambari.apache.org>><mailto:user@ambari.apache.org>
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:sroberts@hortonworks.com]
Sent: Wednesday, February 18, 2015 2:42 PM
To: user@ambari.apache.org
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 <taoyu@aware.com><mailto:taoyu@aware.com>
Reply: user@ambari.apache.org<mailto:user@ambari.apache.org> <user@ambari.apache.org>><mailto:user@ambari.apache.org>
Date: February 18, 2015 at 19:31:30
To: user@ambari.apache.org<mailto:user@ambari.apache.org> <user@ambari.apache.org>><mailto:user@ambari.apache.org>
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

Mime
View raw message