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

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

Add voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            szetszwo Tsz-wo Sze

            Dates

              Created:
              Updated:

              Issue deployment