ambari-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhang Ruiqiang" <>
Subject How to get Ambari server host in status function of service control script
Date Thu, 07 Jan 2016 15:54:36 GMT
Hi all:
      I want to do use the REST API in status function, so I should get the ambari server
host. In start/stop function, it can be get by Script.get_confgi()['clusterInfo']['ambariServerHost'].
 But in status function, the key was not exist. Maybe, i can get it by Script.get_confgi()['jdk_location']
indirectly, but I think this is not elegant.
      Is there a better solution?


View raw message