Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-5863 Improve OfflineImageViewer
  3. HDFS-6240

WebImageViewer returns 404 if LISTSTATUS to an empty directory

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.5.0
    • 2.5.0
    • tools
    • None
    • Reviewed

    Description

      WebImageViewer will get the following error if there is an empty directory is in /user/root/.

      [root@trunk ~]# hdfs dfs -ls -R webhdfs://localhost:5978/user/root/
      ls: Unexpected HTTP response: code=404 != 200, op=LISTSTATUS, message=Not Found
      

      The reason of the error is that WebImageViewer returns 404 (not found) if LISTSTATUS to an empty directory. It should return 200 (ok) and empty FileStatuses.

      Attachments

        1. HDFS-6240.patch
          4 kB
          Akira Ajisaka

        Activity

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

          People

            aajisaka Akira Ajisaka
            aajisaka Akira Ajisaka
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment