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

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.5.0
    • Fix Version/s: 2.5.0
    • Component/s: tools
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      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

          Activity

            People

            • Assignee:
              ajisakaa Akira Ajisaka
              Reporter:
              ajisakaa Akira Ajisaka
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: