hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-7427) [fetchimage] Should give correct error message when it's not able flush the image file.
Date Mon, 24 Nov 2014 09:11:12 GMT

     [ 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 not able flush the image
file.  (was: [fetchimage] Should give correct error message when it's flush the image file
)

> [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
>            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)

Mime
View raw message