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 Sub-task
    • Status: Closed
    • Priority: Major 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.

      1. HDFS-6240.patch
        4 kB
        Akira AJISAKA

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Akira AJISAKA
            Reporter:
            Akira AJISAKA
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development