Turns out Commons IO too uses df on most platforms and dir /-c on Windows.
As a result, it kan only report the free space.
It seems the GnuWin32 coreutils includes a df command which doesn't depend
on Cygwin.
http://gnuwin32.sourceforge.net/packages/coreutils.htm
I'll see if I can convince JSW to set the environment so that DF can find
this program.
Cheers,
Albert
----- Original Message -----
From: "Albert Strasheim" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Monday, June 25, 2007 12:18 AM
Subject: org.apache.hadoop.fs.DF vs Windows
The next problem seems to be that DataNode is trying to run the df
command, which is rather system specific.
Java 6 added some new methods to handle this issue, but I'm assuming
Hadoop wants to stay compatible with older versions of the JDK. In that
case, could FileSystemUtils from Commons IO be used instead of the df
hack?
http://jakarta.apache.org/commons/io/api-release/index.html?org/apache/commons/io/FileSystemUtils.html