Help needed with creating a Data Query using "GetScriptData"

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
kmhendress
Posts: 33
Joined: Wed Aug 27, 2008 2:49 pm

Help needed with creating a Data Query using "GetScriptData"

Post by kmhendress »

Hi = I am new to the data queries via the XML format. Trying to write something for Hadoop, that will walk this url, grab the different queue names and the data for each queue.

Example Command:
curl $host:8088/jmx?qry=Hadoop:service=ResourceManager,name=QueueMetrics,q0=root,q1=$queue"

Example Output (after minimal data cleansing/formatting):
name Hadoopservice=ResourceManagername=QueueMetricsq0=rootq1=labs modelerType QueueMetricsq0=rootq1=labs tag.Queue root.labs tag.Context yarn tag.Hostname zlabads65.uu.deere.com running_0 0 running_60 0 running_300 0 running_1440 0 AppsSubmitted 0 AppsRunning 0 AppsPending 0 AppsCompleted 0 AppsKilled 0 AppsFailed 0 AllocatedMB 0 AllocatedVCores 0 AllocatedContainers 0 AggregateContainersAllocated 0 AggregateContainersReleased 0 AvailableMB 73728 AvailableVCores 7 PendingMB 0 PendingVCores 0 PendingContainers 0 ReservedMB 0 ReservedVCores 0 ReservedContainers 0 ActiveUsers 0 ActiveApplications 0


What I would like to do is walk through the queue list and create graphs for each queue for the cluster. Currently I have do that by using a perl script and individual graph templates for each queue name -- but I think there is a better way.

I thought using the "Script Query XML Syntax" would be best - but so far I am not fully understanding how it works and all ties together. Any help or examples would be much appreciated.

Thanks,
Kevin
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests