Return-Path: Delivered-To: apmail-lucene-hadoop-dev-archive@locus.apache.org Received: (qmail 90889 invoked from network); 16 Mar 2006 01:06:20 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 16 Mar 2006 01:06:20 -0000 Received: (qmail 18464 invoked by uid 500); 16 Mar 2006 01:06:20 -0000 Delivered-To: apmail-lucene-hadoop-dev-archive@lucene.apache.org Received: (qmail 18445 invoked by uid 500); 16 Mar 2006 01:06:20 -0000 Mailing-List: contact hadoop-dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hadoop-dev@lucene.apache.org Delivered-To: mailing list hadoop-dev@lucene.apache.org Received: (qmail 18435 invoked by uid 99); 16 Mar 2006 01:06:20 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Mar 2006 17:06:20 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [192.87.106.226] (HELO ajax.apache.org) (192.87.106.226) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Mar 2006 17:06:19 -0800 Received: from ajax (localhost.localdomain [127.0.0.1]) by ajax.apache.org (Postfix) with ESMTP id CEF5DD49FE for ; Thu, 16 Mar 2006 01:05:58 +0000 (GMT) Message-ID: <768362642.1142471158845.JavaMail.jira@ajax> Date: Thu, 16 Mar 2006 01:05:58 +0000 (GMT) From: "Doug Cutting (JIRA)" To: hadoop-dev@lucene.apache.org Subject: [jira] Commented: (HADOOP-33) DF enhancement: performance and win XP support In-Reply-To: <922804577.1139611475063.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/HADOOP-33?page=comments#action_12370627 ] Doug Cutting commented on HADOOP-33: ------------------------------------ This still needs a few improvements. - why are all the fields protected? shouldn't they be private? - the test case isn't a junit test. - the toString() method now needs to call to doDF(). - the javadoc now says it uses a windows command, but it doesn't > DF enhancement: performance and win XP support > ---------------------------------------------- > > Key: HADOOP-33 > URL: http://issues.apache.org/jira/browse/HADOOP-33 > Project: Hadoop > Type: Improvement > Components: fs, dfs > Environment: Unix, Cygwin, Win XP > Reporter: Konstantin Shvachko > Priority: Minor > Attachments: DF.java, DF.patch, DF2.patch, DF3.patch > > 1. DF is called twice for each heartbeat, which happens each 3 seconds. > There is a simple fix for that in the attached patch. > 2. cygwin is required to run df program in windows environment. > There is a class org.apache.commons.io.FileSystemUtils, which can return disk free space > for different OSs, but it does not have means to get disk capacity. > In general in windows there is no efficient and uniform way to calculate disk capacity > using a shell command. > The choices are 'chkdsk' and 'defrag -a', but both of them are too slow to be called > every 3 seconds. > WinXP and 2003 server have a new tool called fsutil, which provides all necessary info. > I implemented a call to fsutil in case df fails, and the OS is right. > Other win versions should still run cygwin. > I tested this fetaure for linux, winXP and cygwin. > See attached patch. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira