[ 
http://issues.apache.org/jira/browse/HADOOP-812?page=comments#action_12457440 ] 
            
Doug Cutting commented on HADOOP-812:
-------------------------------------

Why can't you simply use fs.getLength(Path)?  The DistributedFileSystem 
implementation, when passed a DFSPath, returns the cached length.

> Make DfsPath a public class
> ---------------------------
>
>                 Key: HADOOP-812
>                 URL: http://issues.apache.org/jira/browse/HADOOP-812
>             Project: Hadoop
>          Issue Type: Bug
>          Components: dfs
>            Reporter: dhruba borthakur
>         Assigned To: dhruba borthakur
>         Attachments: dfspathpublic.patch
>
>
> I would like to get the filesize of a particular HDFS file from an external 
> program. This functionality is exported through the DfsPath class. I would 
> like to make this class a public class.

-- 
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

        

Reply via email to