Brahma Reddy Battula created HDFS-7427: ------------------------------------------
Summary: [ HTTPS Only ] Fetchimage will not work when we enable cluster with HTTPS only Key: HDFS-7427 URL: https://issues.apache.org/jira/browse/HDFS-7427 Project: Hadoop HDFS Issue Type: Bug Reporter: Brahma Reddy Battula Priority: Critical Scenario: Start cluster in securemode and enable only HTTPS Run fectchimage command [omm@linux158 bin]$ ./hdfs dfsadmin -fetchImage hdfs://10.**.**:25000/ No GC_PROFILE is given. Defaults to medium. fetchImage: FileSystem file:/// is not an HDFS file system Usage: java DFSAdmin [-fetchImage <local directory>] {code} public int fetchImage(final String[] argv, final int idx) throws IOException { Configuration conf = getConf(); final URL infoServer = DFSUtil.getInfoServer( HAUtil.getAddressOfActive(getDFS()), conf, DFSUtil.getHttpClientScheme(conf)).toURL(); SecurityUtil.doAsCurrentUser(new PrivilegedExceptionAction<Void>() { @Override public Void run() throws Exception { TransferFsImage.downloadMostRecentImageToDirectory(infoServer, new File(argv[idx])); return null; } }); return 0; } {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)