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

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • hdfs-client, namenode
    • 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

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

              Dates

                Created:
                Updated: