Hello Constantine, Execution context is different for START/STOP vs STATUS command. Unless you modify the server code, you cannot get it.
But, could you please explain what specifically you are trying to achieve. Also, since you might be checking the status of the component on the node only, why do you need to clusterHostInfo ? Thanks, Bhuvnesh Chaudhary Email: bchau <[email protected]>[email protected] Desk: +1-650-846-1696 | Mobile: +1-973-906-6976 On Tue, Nov 17, 2015 at 5:14 AM, Constantine Yarovoy <[email protected]> wrote: > Hi, all! > > I am developing own custom stack for Ambari and I've found, that when > coding status method for a service component python handler, and trying to > get values from config['clusterHostInfo'][....] or > default('/clusterHostInfo/....') - it simply gives empty values. > > However, when I try to do that inside start/stop or configure method - all > works fine. > > So, the question is - is it possible to get clusterHostInfo information > within status method ? > > Thanks in advance, > > -- > Kostiantyn Iarovyi > >
