[ https://issues.apache.org/jira/browse/HDFS-6240?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13994373#comment-13994373 ]
Hudson commented on HDFS-6240: ------------------------------ FAILURE: Integrated in Hadoop-Mapreduce-trunk #1778 (See [https://builds.apache.org/job/Hadoop-Mapreduce-trunk/1778/]) HDFS-6240. WebImageViewer returns 404 if LISTSTATUS to an empty directory. Contributed by Akira Ajisaka. (wheat9: http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1593591) * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/FSImageLoader.java * /hadoop/common/trunk/hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/tools/offlineImageViewer/TestOfflineImageViewer.java > WebImageViewer returns 404 if LISTSTATUS to an empty directory > -------------------------------------------------------------- > > Key: HDFS-6240 > URL: https://issues.apache.org/jira/browse/HDFS-6240 > Project: Hadoop HDFS > Issue Type: Sub-task > Components: tools > Affects Versions: 2.5.0 > Reporter: Akira AJISAKA > Assignee: Akira AJISAKA > Fix For: 2.5.0 > > Attachments: HDFS-6240.patch > > > {{WebImageViewer}} will get the following error if there is an empty > directory is in {{/user/root/}}. > {code} > [root@trunk ~]# hdfs dfs -ls -R webhdfs://localhost:5978/user/root/ > ls: Unexpected HTTP response: code=404 != 200, op=LISTSTATUS, message=Not > Found > {code} > 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. -- This message was sent by Atlassian JIRA (v6.2#6252)