Member since
06-23-2014
19
Posts
0
Kudos Received
0
Solutions
07-21-2014
01:38 PM
I initially found this confusing, because the Python library for the Cloudera Manager API lacks helper functions for this API endpoint. Nonetheless, it is easy to implement the API call in Python. I will look into adding a helper class to the open-source Python library. HOST = 'myhost'
CLUSTER_NAME = 'mycluster'
SERVICE = 'mapreduce1'
ACTIVITY_ID = 'your_activity_job_id'
parameters = 'clusters/%s/services/%s/activities/%s/metrics' % (
CLUSTER_NAME, SERVICE, ACTIVITY_ID)
url = '%s:7180/api/v1/%s' % (HOST, urllib.quote(parameters))
r = requests.get(url,auth=(USERNAME, PASSWORD))
print r.json()
... View more
06-30-2014
07:01 PM
Michael,
Thank you for the suggestion and for your participation in our community. One of the main things we consider about our discussion boards is not only how intuitive and easy our community web site is to browse, but also how to achieve a significant amount of traffic in each section. Web site real estate is so important when it comes to your satisfaction of the page and it's ease of use that we take this very seriously. Best practices for healthy/vibrant communities show that you don't want any discussion boards present that receive less than about 15 posts per day. These low traffic boards just take up space on the web page and don't seem very lively for community participants who are browsing the page, so they end up being more of a distraction than benefit. Over time, it is very possible that the CM API itself may generate enough topics to be worthy of it's own board. I'm not sure it's there yet, but we will definitely take a deeper look at the metrics and consider it. As it stands today, we have many internal experts who monitor the CM board as well as many external users so it is a very good place to ask API questions.
Much appreciated,
Clint
... View more