Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Won't Fix
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      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.

      1. dfspathpublic.patch
        0.5 kB
        dhruba borthakur

        Activity

        Hide
        dhruba borthakur added a comment -

        Made DfsPath a public class.

        Show
        dhruba borthakur added a comment - Made DfsPath a public class.
        Hide
        Doug Cutting added a comment -

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

        Show
        Doug Cutting added a comment - Why can't you simply use fs.getLength(Path)? The DistributedFileSystem implementation, when passed a DFSPath, returns the cached length.
        Hide
        Hadoop QA added a comment -

        +1, http://issues.apache.org/jira/secure/attachment/12346931/dfspathpublic.patch applied and successfully tested against trunk revision r483772

        Show
        Hadoop QA added a comment - +1, http://issues.apache.org/jira/secure/attachment/12346931/dfspathpublic.patch applied and successfully tested against trunk revision r483772
        Hide
        dhruba borthakur added a comment -

        Hi Doug,

        You are right. I will adopt your suggestion. Shall I mark this defect as 'resolved"?

        thanks,
        dhruba

        Show
        dhruba borthakur added a comment - Hi Doug, You are right. I will adopt your suggestion. Shall I mark this defect as 'resolved"? thanks, dhruba

          People

          • Assignee:
            dhruba borthakur
            Reporter:
            dhruba borthakur
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development