[
https://issues.apache.org/jira/browse/HADOOP-33?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12556354#action_12556354
]
Jean-François Ménard commented on HADOOP-33:
--------------------------------------------
The result of 'fsutil' is localised.
On my french windows XP, the result is:
Nombre total d'octets libres : 23775694848
Nombre total d'octets : 143913521152
Nombre total d'octets libres disponibles : 23775694848
I modified DF.java accordingly for my needs, but if the order of lines is
always the same, I guess that parsing the lines sequentially should do the
trick.
> DF enhancement: performance and win XP support
> ----------------------------------------------
>
> Key: HADOOP-33
> URL: https://issues.apache.org/jira/browse/HADOOP-33
> Project: Hadoop
> Issue Type: Improvement
> Components: dfs, fs
> Affects Versions: 0.1.0
> Environment: Unix, Cygwin, Win XP
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Shvachko
> Priority: Minor
> Fix For: 0.1.0
>
> Attachments: DF.java, DF5.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.
-
You can reply to this email to add a comment to the issue online.