analytics-engine

How to retrieve the name node host name using Ambari?

时光怂恿深爱的人放手 提交于 2019-12-24 21:18:51
问题 The python-ambariclient library has an api for retrieving the host_components: ambari.services(service_name).components(component_name).host_components How can I extract the name_node for an IBM Analytics Engine cluster? I think I need to make the call: GET https://xxxx.bi.services.us-south.bluemix.net:9443/api/v1/clusters/AnalyticsEngine/services/HDFS/components/NAMENODE?fields=host_components Which retrieves the following information: { "href" : "https://xxxx.bi.services.us-south.bluemix