Hi Jeff Some existing implementation might help you give an idea of how stack_advisor is implemented to component layout recommendation: https://github.com/apache/ambari/blob/trunk/ambari-server/src/main/resources/stacks/HDP/2.3/services/stack_advisor.py#L25-#L51
If you can explain what exactly you are trying to achieve, I might be able to help you with it. Regards Matt On Mon, Jan 25, 2016 at 4:31 PM, Jeff Zhang <[email protected]> wrote: > I try to add stackadvisor for one component. The logic is simple, but > don't know how to do that use ambari api. e.g. how to get the number of > nodemangers, how to get the number of hosts that with my service deployed. > If there's any python api doc, there would be very helpful. > > > -- > Best Regards > > Jeff Zhang > -- *Mithun Mathew* (Matt) - www.linkedin.com/in/mithunmatt/
