Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-1743

HdfsFileStatus.getLocalName() returns an empty string when listing a full file path.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: hdfs-client, namenode
    • Labels:
      None

      Description

      If a HdfsFileStatus of a file is obtained through FSDirectory.getListing(..) on a directory, then HdfsFileStatus.getLocalName() returns the file name.

      However, if a HdfsFileStatus is obtained using FSDirectory.getFileInfo(..) or FSDirectory.getListing(..) by giving a full path of a file, then HdfsFileStatus.getLocalName() returns an empty string.

        Attachments

        1. TestHdfsFileStatus.java
          3 kB
          Tsz-wo Sze

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                szetszwo Tsz-wo Sze
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated: