adoroszlai opened a new pull request, #5766:
URL: https://github.com/apache/ozone/pull/5766
## What changes were proposed in this pull request?
`hadoop fs -checksum` (or `hdfs dfs -checksum`) fails with
`NoClassDefFoundError: CompositeCrcFileChecksum` when using Hadoop 2.
`CompositeCrcFileChecksum` was added by HDFS-13056 only in Hadoop 3.2.0 (and
backported to 3.1.1). (Thus it may also fail with Hadoop 3.1.0 and Hadoop
3.0.x, but I haven't tried those.)
This PR fixes it by:
* moving all related code into a new `CompositeCrc` class
* guarding `CompositeCrc` usage by
`HadoopCompatibility#isCompositeCrcAvailable()`
`HadoopCompatibility` is intended to be used for other version-dependent
code we may find, too.
https://issues.apache.org/jira/browse/HDDS-9886
## How was this patch tested?
Added execution of `hdfs dfs -checksum` in Robot tests.
Added execution of `TestOmKeyInfo` unit test in `ozone-filesystem-hadoop2`
module.
CI:
https://github.com/adoroszlai/ozone/actions/runs/7168203572
--
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]