Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 90A6810B0C for ; Sun, 9 Jun 2013 14:31:20 +0000 (UTC) Received: (qmail 98318 invoked by uid 500); 9 Jun 2013 14:31:14 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 98168 invoked by uid 500); 9 Jun 2013 14:31:09 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 98146 invoked by uid 99); 9 Jun 2013 14:31:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jun 2013 14:31:08 +0000 X-ASF-Spam-Status: No, hits=1.8 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of rmorgan466@gmail.com designates 209.85.214.172 as permitted sender) Received: from [209.85.214.172] (HELO mail-ob0-f172.google.com) (209.85.214.172) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 09 Jun 2013 14:31:03 +0000 Received: by mail-ob0-f172.google.com with SMTP id wo10so8915934obc.3 for ; Sun, 09 Jun 2013 07:30:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=l85TwaY6mBS4AjVv9ZqsVTcIoPrbKwGhghmLKLdib3E=; b=BABnJ6J6gC0okd8dhxafnFTr+kDzWfZP3s+mRRmW4Tjh860d5uTggVaz5WcWOUmJpt ZcEE/K1Ax2oNp7yqnRxa2GjD7qoMZUIiUtrmq6MddXC0wV/VZTu20d/OR/EEVvLhdYlQ a7v00J3kNc+Tw6nwtvjkTy8OFTlNkoFgSy/tR8lW+m1uVBc5rJQ+MZqSIPsaevaesu4A HMeJ1WVax0dt7hyoG7F20w5EJgRiaXuy1T/uT8wNCny7rHjcoML6g0KQpAFC1x4oP7ua R0scYy/zjJkt+75Qk/+KJtR4OQS+czfiUfjzFOC0WYOu2jUg6HIsKTuf45nPKPIb8E0l FDmg== MIME-Version: 1.0 X-Received: by 10.60.115.73 with SMTP id jm9mr4860767oeb.126.1370788242165; Sun, 09 Jun 2013 07:30:42 -0700 (PDT) Received: by 10.76.88.102 with HTTP; Sun, 9 Jun 2013 07:30:42 -0700 (PDT) In-Reply-To: <51B09368.7090707@buscapecompany.com> References: <51B09368.7090707@buscapecompany.com> Date: Sun, 9 Jun 2013 10:30:42 -0400 Message-ID: Subject: Re: Management API From: Rita To: "" Content-Type: multipart/alternative; boundary=089e0115ec303c953e04deb982a5 X-Virus-Checked: Checked by ClamAV on apache.org --089e0115ec303c953e04deb982a5 Content-Type: text/plain; charset=ISO-8859-1 Are there any specs for the JSON schema? On Thu, Jun 6, 2013 at 9:49 AM, MARCOS MEDRADO RUBINELLI < marcosm@buscapecompany.com> wrote: > Brian, > > If you have access to the web UI, you can get those metrics in JSON from > the JMXJsonServlet. Try hitting > http://namenode_hostname:50070/jmx?qry=Hadoop:* and > http://jobtracker_v1_hostname:50030/jmx?qry=hadoop:* > > It isn't as extensive as other options, but if you just need a snapshot of > node capacity and utilization, it's pretty handy. I used it to plug some > basic warnings into Nagios. > > Regards, > Marcos > > > On 06-06-2013 09:51, Brian Mason wrote: > > I am looking for a way to access a list of Nodes, Compute, Data etc .. My > application is not running on the name node. It is remote. The 2.0 Yarn > API look like they may be useful, but I am not on 2.0 and cannot move to > 2,0 anytime soon. > > DFSClient.java looks useful, but its not in the API docs so I am not > sure how to use it or even if I should. > Any pointers would be helpful. > > Thanks, > > > -- --- Get your facts first, then you can distort them as you please.-- --089e0115ec303c953e04deb982a5 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Are there any specs for the JSON schema?=A0


On Thu, Jun 6, 2013 at= 9:49 AM, MARCOS MEDRADO RUBINELLI <marcosm@buscapecompany.com> wrote:
Brian,

If you have access to the web UI, you can get those metrics in JSON from th= e JMXJsonServlet. Try hitting
http://namenode_hostname:50070/jmx?qry=3DHadoop:* and http://jobtracker_v1_hostname:50030/jmx?qry=3Dhadoop:*

It isn't as extensive as other options, but if you just need a snapshot= of node capacity and utilization, it's pretty handy. I used it to plug= some basic warnings into Nagios.

Regards,
Marcos


On 06-06-2013 09:51, Brian Mason wrote:
I am looking for a way to access a list of Nodes, Compute,= Data etc .. =A0My application is not running on the name node. =A0It is re= mote. =A0The 2.0 Yarn API look like they may be useful, but I am not on 2.0= and cannot move to 2,0 anytime soon.

DFSClient.java looks useful, but its not in the API docs so I am not s= ure how to use it or even if I should.
Any pointers would be helpful. =A0

Thanks,




--
--- Ge= t your facts first, then you can distort them as you please.--
--089e0115ec303c953e04deb982a5--