[
https://issues.apache.org/jira/browse/HDFS-7427?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Brahma Reddy Battula updated HDFS-7427:
---------------------------------------
Summary: [fetchimage] Should give correct error message when it's flush the
image file (was: [ HTTPS Only ] Fetchimage will not work when we enable
cluster with HTTPS only)
> [fetchimage] Should give correct error message when it's 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
> Priority: Critical
>
> Scenario:
> Start cluster in securemode and enable only HTTPS
> Run fectchimage command
> [omm@linux158 bin]$ ./hdfs dfsadmin -fetchImage /srv/image
> 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)