Return-Path: X-Original-To: apmail-hadoop-common-dev-archive@www.apache.org Delivered-To: apmail-hadoop-common-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 4E928C120 for ; Sun, 12 Aug 2012 14:19:30 +0000 (UTC) Received: (qmail 37450 invoked by uid 500); 12 Aug 2012 14:19:28 -0000 Delivered-To: apmail-hadoop-common-dev-archive@hadoop.apache.org Received: (qmail 37387 invoked by uid 500); 12 Aug 2012 14:19:28 -0000 Mailing-List: contact common-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-dev@hadoop.apache.org Delivered-To: mailing list common-dev@hadoop.apache.org Received: (qmail 37379 invoked by uid 99); 12 Aug 2012 14:19:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2012 14:19:28 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of harsh@cloudera.com designates 209.85.214.176 as permitted sender) Received: from [209.85.214.176] (HELO mail-ob0-f176.google.com) (209.85.214.176) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 12 Aug 2012 14:19:23 +0000 Received: by obbtb18 with SMTP id tb18so6730391obb.35 for ; Sun, 12 Aug 2012 07:19:03 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:x-gm-message-state; bh=2GImpLO6pCocSDRgB/AZsf/ic86MNZRoqOS0OqxwO40=; b=JMgiwOasid13TjHiFEmQ5FGKetGsfYKceMJD1o4RXqVbOjxPVh/7ZszPsXiexOWhyM /Kjcoa5eMwSQ9mxERo/jXrDsFpsyTlLuso9eU9z4XWbVwWkl0BDaDz3NX3AdPip2pcZv aqGdeiU/9nhOYgZL1Ky1J5N7teBt1wC0OwFW0hyOJWZmS3xxu+wozU9Keksu9N/Y31+f 13jwewlvZNEXhUO3I5DwDmIzUI4F3FTahUrwaaYdMhESgzFXagzRApWqeq7N8ZZKGZ7a ivqTn6XAoBL1lbVox46vf+n7G7qGgAurGMsmFDPMfQxY7Lvt4Pb8aHU/XZJ9+1GEcfiP EULg== Received: by 10.60.2.99 with SMTP id 3mr13324549oet.20.1344781142905; Sun, 12 Aug 2012 07:19:02 -0700 (PDT) MIME-Version: 1.0 Received: by 10.76.11.168 with HTTP; Sun, 12 Aug 2012 07:18:42 -0700 (PDT) In-Reply-To: References: From: Harsh J Date: Sun, 12 Aug 2012 19:48:42 +0530 Message-ID: Subject: Re: Hadoop cluster/monitoring To: common-dev@hadoop.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Gm-Message-State: ALoCoQlT2D7zJbZB6py0sTP5hF/usSUgoph9I3czKaUM/rXj/lZd7UOWFgUPcOhMlJHUurt3TURs X-Virus-Checked: Checked by ClamAV on apache.org Nagaraju, On Wed, Aug 8, 2012 at 10:52 PM, Nagaraju Bingi wrote: > Hi, > > I'm beginner in Hadoop concepts. I have few basic questions: > 1) looking for APIs to retrieve the capacity of the cluster. so that i can write a script to when to add a new slave node to the cluster > > a) No.of Task trackers and capacity of each task tracker to spawn max No.of Mappers For this, see: http://hadoop.apache.org/common/docs/stable/api/org/apache/hadoop/mapred/ClusterStatus.html > b) CPU,RAM and disk capacity of each tracker Rely on other tools to provide this one. Tools such as Ganglia and Nagios can report this, for instance. > c) how to decide to add a new slave node to the cluster This is highly dependent on the workload that is required out of your clusters. > 2) what is the API to retrieve metrics like current usage of resources and currently running/spawned Mappers/Reducers See 1.a. for some, and 1.b for some more. > 3) what is the purpose of Hadoop-common?Is it API to interact with hadoop Hadoop Common encapsulates the utilities shared by both of the other sub-projects - MapReduce and HDFS. Among other things, it does provide a general interaction API for all things 'Hadoop' -- Harsh J