[ 
https://issues.apache.org/jira/browse/HADOOP-5958?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12768848#action_12768848
 ] 

Doug Cutting commented on HADOOP-5958:
--------------------------------------

> Remove the inheritance from Shell? (incompatible change)

I'd be surprised if this broke any applications.  It would indeed be safer to 
add the dummy methods, deprecated, and file an issue to remove them attached to 
the next release, but that feels like overkill here.  Does any code in Hadoop 
depend on it extending Shell?

Does java.io.File let you find the mount point?  I thought we used that in 
places, but perhaps not.  I guess if it's used then we might still need to use 
the 'df' command to support that, although perhaps we could avoid it for the 
other methods.

> Use JDK 1.6 File APIs in DF.java wherever possible
> --------------------------------------------------
>
>                 Key: HADOOP-5958
>                 URL: https://issues.apache.org/jira/browse/HADOOP-5958
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: fs
>            Reporter: Devaraj Das
>             Fix For: 0.21.0
>
>
> JDK 1.6 has File APIs like File.getFreeSpace() which should be used instead 
> of spawning a command process for getting the various disk/partition related 
> attributes. This would avoid spikes in memory consumption by tasks when 
> things like LocalDirAllocator is used for creating paths on the filesystem.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to