Return-Path: Delivered-To: apmail-hadoop-core-user-archive@www.apache.org Received: (qmail 51493 invoked from network); 8 Apr 2009 13:52:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 13:52:17 -0000 Received: (qmail 31967 invoked by uid 500); 8 Apr 2009 13:52:15 -0000 Delivered-To: apmail-hadoop-core-user-archive@hadoop.apache.org Received: (qmail 31872 invoked by uid 500); 8 Apr 2009 13:52:14 -0000 Mailing-List: contact core-user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-user@hadoop.apache.org Delivered-To: mailing list core-user@hadoop.apache.org Received: (qmail 31862 invoked by uid 99); 8 Apr 2009 13:52:14 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 13:52:14 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of stas.oskin@gmail.com designates 209.85.218.176 as permitted sender) Received: from [209.85.218.176] (HELO mail-bw0-f176.google.com) (209.85.218.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 13:52:08 +0000 Received: by bwz24 with SMTP id 24so147778bwz.29 for ; Wed, 08 Apr 2009 06:51:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=4LOFwz+Nuev64Ok1tinVjbK2JLMe2U7+ffH/9CLh4o4=; b=extUN4CTICnO//oPGlBMch49mQN+ElQVJdv3eedKVeRDmcg64VQhHGJIOK7zcgHNd+ Rd5K/ipIGeUH0I56CRN1AMQwFgkshMQvFVFXEtqs9qQHu78C54C3/waKDQaRPxp7IIVa Jk/s6rc55DBW2NVwCq7uhiTfz62byOexXxzbQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ek1SLITHPK3HgAlO4XX5k94VFNBeVZFnfYh0w2tMBPIus6FWiFT43CEsY2ANXGetx/ FkxRjXrU/4tILx7n/gvQu7WCehIYzAimthFLVkOx/1mj9DYbTtFDwyxGQB+h00eh//6D dol8as3QTx/0xm7a9sN128t+laI7pvdOXbFMI= MIME-Version: 1.0 Received: by 10.223.115.193 with SMTP id j1mr396125faq.85.1239198706284; Wed, 08 Apr 2009 06:51:46 -0700 (PDT) In-Reply-To: <8DDDF410-EF83-4E7A-A986-EFE71DC4F298@cse.unl.edu> References: <77938bc20904080113k11befd2exad19e566d4bd838@mail.gmail.com> <8DDDF410-EF83-4E7A-A986-EFE71DC4F298@cse.unl.edu> Date: Wed, 8 Apr 2009 16:51:46 +0300 Message-ID: <77938bc20904080651x11cb56d0q1abf43159022b45a@mail.gmail.com> Subject: Re: Getting free and used space From: Stas Oskin To: core-user@hadoop.apache.org Content-Type: multipart/alternative; boundary=001636c5b8efb1b79704670b6ed7 X-Virus-Checked: Checked by ClamAV on apache.org --001636c5b8efb1b79704670b6ed7 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi. Thanks for the explanation. Now for the easier part - how do I specify the user when connecting? :) Is it a config file level, or run-time level setting? Regards. 2009/4/8 Brian Bockelman > Hey Stas, > > Did you try this as a privileged user? There might be some permission > errors... in most of the released versions, getUsed() is only available to > the Hadoop superuser. It may be that the exception isn't propagating > correctly. > > Brian > > > On Apr 8, 2009, at 3:13 AM, Stas Oskin wrote: > > Hi. >> >> I'm trying to use the API to get the overall used and free spaces. >> >> I tried this function getUsed(), but it always returns 0. >> >> Any idea? >> >> Thanks. >> > > --001636c5b8efb1b79704670b6ed7--