[ https://issues.apache.org/jira/browse/HDFS-7427?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14370893#comment-14370893 ]
Walter Su commented on HDFS-7427: --------------------------------- It's fixed in my hadoop 2.6.0 version. {code} ds-35:/home/skh/hadoop-2.6.0 # bin/hdfs dfsadmin -fetchImage ./ 15/03/20 15:23:49 INFO namenode.TransferFsImage: Opening connection to https://ds-34:50470/imagetransfer?getimage=1&txid=latest 15/03/20 15:23:49 INFO namenode.TransferFsImage: Image Transfer timeout configured to 60000 milliseconds fetchImage: Image transfer servlet at https://ds-34:50470/imagetransfer?getimage=1&txid=latest failed with status code 403 Response message: Only Namenode, Secondary Namenode, and administrators may access this servlet {code} > [fetchimage] Should give correct error message when it's not able flush the > image file. > --------------------------------------------------------------------------------------- > > Key: HDFS-7427 > URL: https://issues.apache.org/jira/browse/HDFS-7427 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Brahma Reddy Battula > > Scenario: > Start cluster in securemode and enable only HTTPS > Run fectchimage command where user not having permission to access the > folder.. > *From Namenode log* > {noformat} > 2014-11-24 16:46:49,072 | WARN | 614008292@qtp-1263063368-200 | Committed > before 410 GetImage failed. org.mortbay.jetty.EofException > at org.mortbay.jetty.HttpGenerator.flush(HttpGenerator.java:791) > at > org.mortbay.jetty.HttpConnection.flushResponse(HttpConnection.java:693) > at > org.mortbay.jetty.HttpConnection$Output.close(HttpConnection.java:999) > at > org.apache.hadoop.hdfs.server.namenode.TransferFsImage.copyFileToStream(TransferFsImage.java:376) > at > org.apache.hadoop.hdfs.server.namenode.TransferFsImage.copyFileToStream(TransferFsImage.java:332) > at > org.apache.hadoop.hdfs.server.namenode.ImageServlet$1.serveFile(ImageServlet.java:158) > at > org.apache.hadoop.hdfs.server.namenode.ImageServlet$1.run(ImageServlet.java:120) > at > org.apache.hadoop.hdfs.server.namenode.ImageServlet$1.run(ImageServlet.java:101) > at java.security.AccessController.doPrivileged(Native Method) > {noformat} > *From Commandline* > [omm@linux158 bin]$ ./hdfs dfsadmin -fetchImage /srv > OutPut : 123456 > *{color:red}fetchImage: Unable to download to any storage directory{color}* > *It's not unable to download, it should be like permission denied* -- This message was sent by Atlassian JIRA (v6.3.4#6332)