[ https://issues.apache.org/jira/browse/HDFS-2941?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13237374#comment-13237374 ]
Todd Lipcon commented on HDFS-2941: ----------------------------------- - Rather than using INVALID_TXID as the URL parameter, I think it makes more sense to use a string like "latest". Right now there's some ambiguity if we had a bug elsewhere that accidentally passed INVALID_TXID. - Rather than adding a new validateStorageInfo parameter, can you just skip validation when no storage info is specified? - Right now there's no way of knowing the txid of the downloaded image. I think the best solution is to add a header like: {code} Content-Disposition: attachment; filename=fsimage_000000012345 {code} this would allow the HTTP endpoint to be used from a browser or a tool like wget with the correct results. You'd then have to change the argument of the fetchImage tool to specify a target directory instead, but I think that's reasonable. > Add an administrative command to download a copy of the fsimage from the NN > --------------------------------------------------------------------------- > > Key: HDFS-2941 > URL: https://issues.apache.org/jira/browse/HDFS-2941 > Project: Hadoop HDFS > Issue Type: New Feature > Components: hdfs client, name-node > Affects Versions: 0.24.0 > Reporter: Aaron T. Myers > Assignee: Aaron T. Myers > Attachments: HDFS-2941.patch > > > It would be nice to be able to download a copy of the fsimage from the NN, > e.g. for backup purposes. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira