kaijchen commented on code in PR #4066:
URL: https://github.com/apache/ozone/pull/4066#discussion_r1049190461
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/keys/GetKeyHandler.java:
##########
@@ -90,7 +90,7 @@ protected void execute(OzoneClient client, OzoneAddress
address)
if (isVerbose() && !"/dev/null".equals(dataFile.getAbsolutePath())) {
try (InputStream stream = new FileInputStream(dataFile)) {
- String hash = DigestUtils.md5Hex(stream);
+ String hash = DigestUtils.sha256Hex(stream);
out().printf("Downloaded file hash : %s%n", hash);
Review Comment:
Please include the hash type in terminal output, for example:
```
out().printf("Downloaded file hash (sha256): %s%n", hash);
out().printf("Downloaded file sha256 checksum: %s%n", hash);
```
Same in PutKeyHandler.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]